We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
object
When using a scalar as a generic, the OpenAPI output sometimes is defined as type object even though the file is not an object.
Using typespec v0.62.0
scalar ISODate extends string; alias RangeUnbound = null; model Range<Inner> { from: Inner | RangeUnbound; to: Inner | RangeUnbound; lowerInclusive: boolean; upperInclusive: boolean; } model ISODateRange is Range<ISODate> {}
ISODateRange: type: object required: - from - to - lowerInclusive - upperInclusive properties: from: type: object allOf: - $ref: '#/components/schemas/ISODate' nullable: true to: type: object allOf: - $ref: '#/components/schemas/ISODate' nullable: true lowerInclusive: type: boolean upperInclusive: type: boolean
RangeUnbound: type: null ISODateRange: type: object required: - from - to - lowerInclusive - upperInclusive properties: from: oneOf: - $ref: '#/components/schemas/ISODate' - $ref: '#/components/schemas/RangeUnbound' to: oneOf: - $ref: '#/components/schemas/ISODate' - $ref: '#/components/schemas/RangeUnbound' lowerInclusive: type: boolean upperInclusive: type: boolean
or
ISODateRange: type: object required: - from - to - lowerInclusive - upperInclusive properties: from: type: string nullable: true to: type: string nullable: true lowerInclusive: type: boolean upperInclusive: type: boolean
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When using a scalar as a generic, the OpenAPI output sometimes is defined as type
object
even though the file is not an object.Using typespec v0.62.0
Reproduction
Typespec
OpenAPI Output
Expected
or
Checklist
The text was updated successfully, but these errors were encountered: