local openapi = 'jsonnet-openapi-spec/openapi.libsonnet'
{
'hello-world.json':
openapi.new()
.Info(
openapi.info.new()
.Title('Hello World')
.Version('1')
.Description('Hello World')
)
.Path(
openapi.pathitem.new('/hello')
.Get(
openapi.operation.new('getHello')
.Response(
openapi.response.new(200)
.Content(
openapi.mediatype.new(openapi.mediatype.plaintext)
.Schema(
openapi.schema.new(openapi.schema.string)
.Example('world')
)
)
)
)
),
}
-
Notifications
You must be signed in to change notification settings - Fork 1
A Jsonnet data templating library for the OpenAPI spec.
License
chlorm/jsonnet-openapi-spec
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A Jsonnet data templating library for the OpenAPI spec.
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published