enums to objects

This commit is contained in:
Jesse Winton
2025-04-01 12:29:49 -04:00
parent d3b5846f9e
commit 687a05e34d
13 changed files with 103 additions and 102 deletions

View File

@@ -60,10 +60,10 @@ export interface Property {
} & OpenAPIV3.ReferenceObject;
}
export enum ModelType {
REST = 'REST',
GRAPHQL = 'GraphQL'
}
export const ModelType = {
REST: 'REST',
GRAPHQL: 'GraphQL'
} as const;
function getExamples(version: string) {
switch (version) {