Created
January 19, 2022 19:04
-
-
Save chriskapp/6b51abbe7f923e181e2eded3ef0ca01e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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