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

More flexible "Modular Schema" support (problems with versioned types) #1535

Open
ndevenish opened this issue Sep 6, 2023 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@ndevenish
Copy link

It looks like #66 made schema type names automatically split into "modular" schemas based on . in the type name.

The SLURM scheduler API schema has schema names per-version like "v0.0.39_jobs_response"1

This ends up in a v0/field_0.py Field36JobsResponse class name.

Describe the solution you'd like
Some way to disable (or customise e.g. the splitting regex) the "modular schema" feature

Describe alternatives you've considered
At the moment I'm preprocessing the openapi json with sed -Ee 's/v0.0.([[:digit:]]+)_/v00\1./'. This is a little fragile and so ideally this wouldn't be necessary.

Additional context
I'm regenerating a schema implementation that someone else originally did, but didn't leave instructions for, so am working out what they did before, from scratch.

Footnotes

  1. Unfortunately, I don't know a place where the raw OpenAPI schema is publicly available without querying an active deployment

@koxudaxi koxudaxi added the enhancement New feature or request label Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants