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

Fix / Workaround to replace type Any in partially overwritten properties #90

Open
simontaurus opened this issue Nov 15, 2024 · 0 comments

Comments

@simontaurus
Copy link
Contributor

simontaurus commented Nov 15, 2024

Background: koxudaxi/datamodel-code-generator#2087

Occures in all subclasses of Item, e.g.

rdf_type: Optional[Any] = "rdf:Statement"

Idea:

  • regex replacement at least of type: Optional[Any] = ["Category:OSW..."] with type: Optional[List[str]] = ["Category:OSW..."]
  • explicite repeating "type": "string" in subschemas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant