Skip to content

Commit

Permalink
Update naming logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjprescott committed Nov 16, 2023
1 parent ff40416 commit fed834d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
7 changes: 2 additions & 5 deletions packages/openapi3/src/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1320,11 +1320,8 @@ function createOAPIEmitter(
!paramModels.has(type) &&
!shouldInline(program, type)
) {
getSchemaOrRef(type, Visibility.Read);
// TODO: This was the old fix...
// if (!processedSchemas.has(type) && !paramModels.has(type) && !shouldInline(program, type)) {
// getSchemaOrRef(type, Visibility.All);
// }
getSchemaOrRef(type, Visibility.All);
}
};
const skipSubNamespaces = isGlobalNamespace(program, serviceNamespace);
navigateTypesInNamespace(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ components:
relatives:
type: array
items:
$ref: '#/components/schemas/PersonRelativeReadOrCreateOrUpdateOrDeleteOrQueryItem'
$ref: '#/components/schemas/PersonRelativeItem'
Person:
type: object
required:
Expand Down Expand Up @@ -176,7 +176,7 @@ components:
type: array
items:
$ref: '#/components/schemas/PersonRelativeCreateOrUpdateItem'
PersonReadOrCreateOrUpdateOrDeleteOrQueryItem:
PersonItem:
type: object
required:
- id
Expand All @@ -200,7 +200,7 @@ components:
relatives:
type: array
items:
$ref: '#/components/schemas/PersonRelativeReadOrCreateOrUpdateOrDeleteOrQueryItem'
$ref: '#/components/schemas/PersonRelativeItem'
PersonRelative:
type: object
required:
Expand Down Expand Up @@ -231,14 +231,14 @@ components:
$ref: '#/components/schemas/PersonCreateOrUpdateItem'
relationship:
type: string
PersonRelativeReadOrCreateOrUpdateOrDeleteOrQueryItem:
PersonRelativeItem:
type: object
required:
- person
- relationship
properties:
person:
$ref: '#/components/schemas/PersonReadOrCreateOrUpdateOrDeleteOrQueryItem'
$ref: '#/components/schemas/PersonItem'
relationship:
type: string
PersonRelativeUpdateItem:
Expand Down

0 comments on commit fed834d

Please sign in to comment.