Skip to content

Instantly share code, notes, and snippets.

@chriskapp
Created January 19, 2022 19:04
Show Gist options
  • Save chriskapp/6b51abbe7f923e181e2eded3ef0ca01e to your computer and use it in GitHub Desktop.
Save chriskapp/6b51abbe7f923e181e2eded3ef0ca01e to your computer and use it in GitHub Desktop.
{
"definitions": {
"Student": {
"type": "object",
"properties": {
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
},
"age": {
"type": "integer"
},
"properties": {
"$ref": "Student_Properties"
}
}
},
"Student_Properties": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"$ref": "Student"
}
export interface Student {
firstName?: string
lastName?: string
age?: number
properties?: Student_Properties
}
export type Student_Properties = Record<string, string>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment