iziteq / izi-api-schemes

JSON Schemes for IZI.API validation
2 stars 2 forks source link

Make all references local for reliability and performance improvements. #6

Closed bartfeenstra closed 9 years ago

bartfeenstra commented 9 years ago

We validate messages a lot and every time multiple schemas are retrieved from Github. This causes a single validation to take between 500ms and 1000ms. All required schema files seem to come from the same repository anyway, so this PR changes the references from locations on Github to the local files. I tested it using https://github.com/justinrainbow/json-schema and all references are loaded from their local files, speeding up our tests significantly.

vitaly-dukhov commented 9 years ago

Merged

bartfeenstra commented 9 years ago

Thanks again!