razum2um / lurker

📖 The ultimate tool for documenting and testing APIs in Rails
https://lurker.razum2um.me/lurker
MIT License
116 stars 22 forks source link

additionalProperties: false #77

Closed Strech closed 10 years ago

Strech commented 10 years ago

Было бы прекрасно избавиться от постоянного упоминания этого атрибута.

Strech commented 10 years ago

https://groups.google.com/d/msg/json-schema/WZ9u80sXMKk/tI33JZ4E1FAJ

However, your actual question was about whether "additionalProperties" cascades down into sub-schemas. The answer is "no" - each schema/sub-schema is considered separately, and you need to specify "additionalProperties" in the sub-schemas as well.

@razum2um Увы и ах, не получится использовать только одно упоминание additionalProperties