You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you referring to the "id" in the model/schema definitions? If so, it is indeed intentional. There's no need for it because the key for the definition is the id.
Yeah, didn't forget about it, just trying to figure out what would be the right id to give it. I hope to host it under our new swagger.io domain name and that should solve it.
Activity
webron commentedon Sep 11, 2014
Are you referring to the "id" in the model/schema definitions? If so, it is indeed intentional. There's no need for it because the key for the definition is the id.
tlivings commentedon Sep 12, 2014
Was actually referring to the top level
idattribute of the schema itself.webron commentedon Sep 13, 2014
In that case, I don't follow. Can you give a concrete example of what you're referring to?
tlivings commentedon Sep 13, 2014
https://github.com/wordnik/swagger-spec/blob/master/schemas/v1.2/apiDeclaration.json#L2
tlivings commentedon Oct 13, 2014
Just to add something here.
idcan be used in resolving$ref, as per the spec, here:http://json-schema.org/latest/json-schema-core.html#anchor26
[edit] Specifically: http://json-schema.org/latest/json-schema-core.html#anchor28
Containing an
idproperty in this schema, as well as any referenced schema, is generally a good way to inform validators how to look up$ref.webron commentedon Oct 13, 2014
Yeah, didn't forget about it, just trying to figure out what would be the right
idto give it. I hope to host it under our new swagger.io domain name and that should solve it.tlivings commentedon Oct 13, 2014
Thanks :) I just wanted to add more detail.
webron commentedon Oct 13, 2014
That's great, I appreciate it. Always looking to learn more :)