-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wiki missing an example of Kind: Spec #1233
Comments
Hi, yes, we can add an example spec. The registry is format-agnostic, so specs could be any version of OpenAPI or any other single-file format and we have been uploading multifile specs (such as collections of .proto) files as zip archives. I'll also try to clarify that language -- we're assuming that even multifile specs like protos get put into an archive, and there the filename would be the filename of the archive. If the archive doesn't exist, registry apply creates it by zipping up everything in the same directory as the info.yaml file that describes the spec.
|
Here is an example of a proto-style API description (in Here is an example of an API with two OpenAPI descriptions (one in the older Swagger/OpenAPI 2.0 format and one in OpenAPI 3.0). Both specs are uploaded when you run |
(keeping this open until the wiki is updated) |
Hey, regarding specs, it says that specs shouldn't be inlined but there's no reference example of how a Spec should be formatted. it would be good to have a copy-paste example of the Spec kind just like the others on this wiki page as a reference. Would it be possible to get one?
File or files? Would you be able to provide an exhaustive list of inputs for
filename
?mimeType
on Spec seems optional, what is it needed for?The text was updated successfully, but these errors were encountered: