You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HistoryEntry:
description: "Properties common for each entry in the scaling history."type: objectoneOf:
- $ref: "#/components/schemas/HistoryErrorEntry"
- $ref: "#/components/schemas/HistoryIgnoreEntry"
- $ref: "#/components/schemas/HistorySuccessEntry"properties:
[... many shared properties, e.g.]message:
type: stringdescription: Textual information about the scaling event.example: appHistoryErrorEntry:
description: Description of a failed scaling even in history.type: objectproperties:
error:
type: stringdescription: | In case the scaling failed, the reason is provided in this field.example: failed to compute new app instancesHistoryIgnoreEntry:
description: Description of an ignored scaling event in history.type: objectproperties:
ignore_reason:
type: stringdescription: | In case the scaling was ignored, the reason is provided in this field.example: app in cooldown periodHistorySuccessEntry:
description: Description of a successful scaling event event in history.type: objectproperties: {} # No extra fields needed in this variant.
What did you expect to see?
With ogen versions up to 1.1.1 client and server code was generated and has been used by us productively.
What did you see instead?
Starting with 1.2.0 we get an error message:
Feature "discriminator inference" is not implemented yet.
Try to create ogen.yml with:
generator:
ignore_not_implemented: ["discriminator inference"]
or
generator:
ignore_not_implemented: ["all"]
to skip unsupported operations.
The text was updated successfully, but these errors were encountered:
What version of ogen are you using?
Working: 1.1.1
Not working: 1.2.0, 1.2.1
Can this issue be reproduced with the latest version?
Yes
What did you do?
We run in cloudfoundry/app-autoscaler-release via generate.go
with the config just being:
and the OpenAPI spec scaling-history-api.openapi.yaml, containing the following schemas:
What did you expect to see?
With
ogen
versions up to 1.1.1 client and server code was generated and has been used by us productively.What did you see instead?
Starting with 1.2.0 we get an error message:
The text was updated successfully, but these errors were encountered: