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

Create anydata fields for object properties with custom data types #4872

Closed
aneeshafedo opened this issue Aug 25, 2023 · 1 comment
Closed

Comments

@aneeshafedo
Copy link

Description:
In the current client generation, when an unknown data type is defined in a schema, we return an error saying

Unsupported OAS data type

The better approach would be to generate those fields with anydata type without breaking the workflow.

Sample OpenAPI:

BookedRooms:
      title: BookedRooms
      type: object
      properties: 
        roomType:
          type: xxx
        name: 
          type: string

Here the type is an unknown type xxx.

Please also check whether we are returning this error in any other cases where we can generate with anydata type.

Affected version: 2201.8.0

Describe your problem(s)

Describe your solution(s)

Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

@lnash94 lnash94 transferred this issue from ballerina-platform/openapi-tools Oct 3, 2023
@lnash94
Copy link
Member

lnash94 commented Sep 18, 2024

This fix is with 2201.10.0

@lnash94 lnash94 closed this as completed Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Status: Done
Development

No branches or pull requests

2 participants