-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
[php-nextgen] Discriminator class detection uses wrong namespace #23287
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
Changes from all commits
93c7b0b
99783e5
3f42e23
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # # DiscriminatorBase | ||
|
|
||
| ## Properties | ||
|
|
||
| Name | Type | Description | Notes | ||
| ------------ | ------------- | ------------- | ------------- | ||
| **type** | **string** | | | ||
|
|
||
| [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,9 @@ | ||||||
| # # DiscriminatorChild | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P3: Use a single Markdown heading marker for the model title. Prompt for AI agents
Suggested change
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the line in template is currently written as: should be only |
||||||
|
|
||||||
| ## Properties | ||||||
|
|
||||||
| Name | Type | Description | Notes | ||||||
| ------------ | ------------- | ------------- | ------------- | ||||||
| **child_property** | **string** | | [optional] | ||||||
|
|
||||||
| [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) | ||||||
Uh oh!
There was an error while loading. Please reload this page.
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.
P2: Resolve discriminator values through the generated mapping before building the subclass name. Custom discriminator mappings will otherwise deserialize to the base model instead of the mapped subtype.
Prompt for AI agents
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.
In this scenario (where discriminator is limited to existing class), the use case is valid.