An origin
object provides information about the primary source document(s)
used to build an API.
Arguments
- url
Character (required). The URL(s) where the document(s) can be found.
- ...
These dots are for future extensions and must be empty.
- format
Character scalar (optional). The format of the document. Presently this will likely always be "openapi".
- version
Character scalar (optional). The specification version (relative to the
format
) used in defining the document. Not to be confused with the version of the API description itself. Most often this will be "3.0" (as in "OpenAPI Specification version 3.0"), "3.1", or a patch version of those.
Value
An origin
S7 object describing where to find the API description,
with fields url
, format
, and version
.
See also
info object
as_contact()
,
as_info()
,
as_license()
,
as_origin()
,
class_contact()
,
class_info()
,
class_license()