-
-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
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
fix(parser): parse array items only if parent has no other item type #11
Conversation
51b1091
to
5956562
Compare
@@ -26,7 +26,7 @@ export interface OpenApiSchema extends OpenApiReference, WithEnumExtension { | |||
required?: string[]; | |||
enum?: (string | number)[]; | |||
type?: string | string[]; | |||
const?: string | number | null; | |||
const?: string | number | boolean | null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nicolas-chaulet reverting your earlier change 4a01f7d#diff-f63840bc9f1fce487110ca8c6f00e21f4039ecbe9f036ec355dfa731132cc93eR29
@@ -4218,7 +4220,7 @@ import type { Enum1 } from './Enum1'; | |||
* This is a model with one property with a 'any of' relationship where the options are not $ref | |||
*/ | |||
export type CompositionWithNestedAnyOfAndNull = { | |||
propA?: ((Enum1 | ConstValue) | null); | |||
propA?: (Array<(Enum1 | ConstValue)> | null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nicolas-chaulet reverting your earlier change 4a01f7d#diff-f96c002010932e16fe6778d2c9ff94a719d2b7ddc38076eabc474b618b9be108R4127
@@ -4201,7 +4203,7 @@ import type { ModelWithDictionary } from './ModelWithDictionary'; | |||
* This is a model with nested 'any of' property with a type null | |||
*/ | |||
export type CompositionWithNestedAnyAndTypeNull = { | |||
propA?: ((ModelWithDictionary | null) | (ModelWithArray | null)); | |||
propA?: (Array<(ModelWithDictionary | null)> | Array<(ModelWithArray | null)>); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5956562
to
c1d8979
Compare
No description provided.