Skip to content
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

RecordPair TyConName ValConName does not serialize nicely in the OpenAPI API #1246

Open
dhess opened this issue Apr 20, 2024 · 0 comments
Open
Assignees
Labels
bug 🐞 A confirmed bug serialization Serialization (e.g., to/from JSON)

Comments

@dhess
Copy link
Member

dhess commented Apr 20, 2024

In #1241, we would like to return an error with a RecordPair TyConName ValConName when the interpreter encounters an unknown ValConName, corresponding to this InterpError:

| UnknownValCon TyConName ValConName

However, RecordPair TyConName ValConName doesn't serialize nicely in the OpenAPI API, producing this illegal name:

            "RecordPair_(GlobalName_'ATyCon)_(GlobalName_'AValCon)": {
                "properties": {
                    "fst": {
                        "$ref": "#/components/schemas/GlobalName"
                    },
                    "snd": {
                        "$ref": "#/components/schemas/GlobalName"
                    }
                },
                "required": [
                    "fst",
                    "snd"
                ],
                "type": "object"
            },
@dhess dhess added serialization Serialization (e.g., to/from JSON) bug 🐞 A confirmed bug labels Apr 20, 2024
@dhess dhess self-assigned this Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 A confirmed bug serialization Serialization (e.g., to/from JSON)
Projects
None yet
Development

No branches or pull requests

1 participant