> Another thing, could you add some validation so let's say I do try to
> upload "x.har.1" it says format is invalid or something to that
> effect.
The entire har file (its JSON structure) is validated against JSON
schema
before the preview is displayed.

Here is the schema for har files.
http://www.softwareishard.com/har/viewer-1.1/schema.js

The viewer is using DOJO's schema validator and the output you see
is an error result from the validator.

Specifically it's related to a reg expression that is used to validate
date-time fields.
var dateTimePattern = /(\d\d\d\d)(-)?(\d\d)(-)?(\d\d)(T)?(\d\d)(:)?(\d
\d)(:)?(\d\d)(\.\d+)?(Z|([+-])(\d\d)(:)?(\d\d))/;

Notice that JSON Schema spec allows using reg expression to validate
formated fields.

The problem (fixed in a12) was the time offset that was incorrectly
exported and so
not matching the format.

Honza





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to