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

[Open Api] Update documentation to create field with an enum #8558

Closed
martmull opened this issue Nov 18, 2024 · 0 comments · Fixed by #8592
Closed

[Open Api] Update documentation to create field with an enum #8558

martmull opened this issue Nov 18, 2024 · 0 comments · Fixed by #8592
Assignees

Comments

@martmull
Copy link
Contributor

martmull commented Nov 18, 2024

See this help post on discord -> https://discord.com/channels/1130383047699738754/1307654103672819794

{
    "type": "SELECT",
    "name": "country",
    "label": "Country",
    "description": "A field to select a country.",
    "icon": "IconWorld",
    "isNullable": true,
    "objectMetadataId": "{{$randomUUID}}",
    "options": [
        {
            "id": "{{$randomUUID}}",
            "color": "orange",
            "label": "Afghanistan",
            "value": "AFGHANISTAN",
            "position": 0
        },
        {
            "id": "{{$randomUUID}}",
            "color": "pink",
            "label": "Aland Islands",
            "value": "ALAND ISLANDS",
            "position": 1
        }
    ]
}

returns an error "Bad Request Exception"

Fix:

- "value":"ALAND ISLANDS",
+ "value":"ALAND_ISLANDS",

Todo

  • Improve error message
  • update rest documentation so it adds and details options parameter in metadata create field endpoint
    Image
@martmull martmull self-assigned this Nov 18, 2024
@martmull martmull converted this from a draft issue Nov 18, 2024
@martmull martmull linked a pull request Nov 19, 2024 that will close this issue
@github-project-automation github-project-automation bot moved this from 🔖 Planned to ✅ Done in Product development ✅ Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

1 participant