Skip to content

Instantly share code, notes, and snippets.

@chamilad
Created November 25, 2018 01:59
Show Gist options
  • Save chamilad/245ad49ca2570e7212580fc1bc3c6133 to your computer and use it in GitHub Desktop.
Save chamilad/245ad49ca2570e7212580fc1bc3c6133 to your computer and use it in GitHub Desktop.
The JSON Schema for a sample request format for an API CI/CD story
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"username": {
"type": "string"
},
"department": {
"type": "string"
},
"apis": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"context": {
"type": "string"
},
"version": {
"type": "string"
}
},
"required": [
"name",
"description",
"context",
"version"
]
}
]
}
},
"required": [
"username",
"department",
"apis"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment