Code examples for JSON at Work, O'Reilly Media.
tmarrs / json-at-work-examples Goto Github PK
View Code? Open in Web Editor NEWCode examples for JSON at Work.
License: MIT License
Code examples for JSON at Work.
License: MIT License
Code examples for JSON at Work, O'Reilly Media.
I saw your mention of "JSON at Work" in a json-schema github issue so I thought I would check it out. I found a couple of issues I thought you would like to know about.
additionalItems
used incorrectlyitems
has two forms. additionalItems
only applies to one of them. Your examples use it on the form of items
that it does not apply to.
In the first form, the value of items
is a JSON Schema. In this case, all items in the array must conform to the given schema. In this form, additionalItems
does not apply. It has no bearing on the validation of the instance.
In the second form, the value of items
is an array of JSON Schemas. This form describes something like a tuple. The item in the instance array at index n should be valid against the schema in the items
array at index n. If the instance array has more items that the items
array, then additionalItems
determines how to validate those extra items.
http://json-schema.org/latest/json-schema-validation.html#anchor37
enum
schemas should not have a type
Specifying a type
is not technically incorrect. It's just not great practice because the type is implicit in the values of the enum
. It's a "Don't Repeat Yourself" issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.