At Pearson Education, where I work, we have a keen interest in using Avro schemas to describe our data models as an alternative to JSON Schema. The benefits of Avro are well-documented. (See, for example, Jon Zuanich's blog.) Moreover, we have concerns about a gap in the support for JSON Schema. Francis Galiegue announced that he is no longer able to maintain the json-schema-validator project. There are outstanding defects in the validator that are creating problems for us, and no one is stepping up to fix them.Ideally, we would like to use Avro schemas directly within our Swagger specifications instead of JSON schema, and we would be willing to contribute some developer resources to help make this happen. Are others interested in seeing direct support for Avro within Swagger?
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
There may be a way to use Avro schema alternatively even now using vendor extensions, but that would require some heavy hacking in the available tool set. If you'd like to explore that option, we can do that as well.That said, I too have concerns about JSON Schema as a modeling language and believe we should explore other options for the future. This is my personal opinion and does not represent the intention of the 'Swagger team'. I'm not familiar with Avro but there's another solution that was presented to me some time ago that seems interesting. The proper way to discuss it for now would be to open an issue on swagger-spec and we'll take it from there. I believe it is worth a discussion, whether we make a change in the future or not, at least to raise awareness to the possible issues.Hi Gregory,Thanks for reaching out.
Data modeling is a difficult problem, and there's no perfect solution. Just like you find Avro to be more convenient, there are others who'd find JSON Schema to be more (even with the documented benefits as you shared). Everyone would have their own reasons and whatnot. Losing maintenance of one library in one language is not reason enough to drop/replace support for JSON Schema.
More so, the usage of JSON Schema (or rather an extended subset of it) is defined by the spec and can't just be taken out and replaced with something else. Just like we don't change anything else in the structure of it without releasing a new version of the spec itself (which is definitely not a daily process).
On Mon, Sep 21, 2015 at 3:10 PM, Gregory McFall <gregory...@pearson.com> wrote:At Pearson Education, where I work, we have a keen interest in using Avro schemas to describe our data models as an alternative to JSON Schema. The benefits of Avro are well-documented. (See, for example, Jon Zuanich's blog.) Moreover, we have concerns about a gap in the support for JSON Schema. Francis Galiegue announced that he is no longer able to maintain the json-schema-validator project. There are outstanding defects in the validator that are creating problems for us, and no one is stepping up to fix them.Ideally, we would like to use Avro schemas directly within our Swagger specifications instead of JSON schema, and we would be willing to contribute some developer resources to help make this happen. Are others interested in seeing direct support for Avro within Swagger?
--
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.