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

[Codegen] Descriptions of array items are ignored #504

Closed
MarshalX opened this issue Dec 20, 2024 · 0 comments · Fixed by #534
Closed

[Codegen] Descriptions of array items are ignored #504

MarshalX opened this issue Dec 20, 2024 · 0 comments · Fixed by #534
Labels
bug Something isn't working

Comments

@MarshalX
Copy link
Owner

MarshalX commented Dec 20, 2024

Example lexicon:

"tags": {
    "type": "array",
    "items": {
        "type": "string"
        "type": "string",
        "maxLength": 25,
        "description": "Items in this array are applied with OR filters. To apply AND filter, put all tags in the same string and separate using && characters"
    }
}

Actual behavior:

tags: t.Optional[t.List[str]] = None  #: Tags.

Expected behavior:

tags: t.Optional[t.List[str]] = None  #: Tags. Items in this array are applied with OR filters. To apply AND filter, put all tags in the same string and separate using && characters

So the description of the array must be combined with the description of the items. Found in #503

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant