fuhrysteve / marshmallow-jsonschema

JSON Schema Draft v7 (http://json-schema.org/) formatting with marshmallow
MIT License
209 stars 72 forks source link

Removing empty required as per https://tools.ietf.org/html/draft-fge-… #57

Closed jbryan closed 6 years ago

jbryan commented 6 years ago

required has a min length of 1 as per https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.4.3

The value of this keyword MUST be an array. This array MUST have at least one element. Elements of this array MUST be strings, and MUST be unique.

Returning missing from get_required allows objects where no fields are required to pass jsonschema draft4 validators.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 6c8298771620930428663cc2ead8ba9e200e84e8 on tnx-limited:master into f6c2daecdab2580fb37eb7bf02b3eefd8176de1d on fuhrysteve:master.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 6c8298771620930428663cc2ead8ba9e200e84e8 on tnx-limited:master into f6c2daecdab2580fb37eb7bf02b3eefd8176de1d on fuhrysteve:master.