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

CLI: generate OpenAPI specs for generic components #76

Open
diegodelemos opened this issue Dec 11, 2018 · 2 comments
Open

CLI: generate OpenAPI specs for generic components #76

diegodelemos opened this issue Dec 11, 2018 · 2 comments

Comments

@diegodelemos
Copy link
Member

Stemmed from #6. We should centralize the command to generate specs which, right now, is replicated in different components, i.e. here.

Depends on reanahub/reana-job-controller#106, since the decision taken influences this initialisation. For instance, if we decide to use marshmallow we should be able to dynamically provide marshmallow models to the OpenAPI generator, i.e.:

def build_openapi_spec(publish, marshmallow_schemas):
    ...
    for name, schema in mashmallow_schemas:
        spec.definition(name, schema=schema)
@diegodelemos
Copy link
Member Author

Add title, version as parameters in build_openapi_spec() in spec.py

Stemmed from reanahub/reana-job-controller#86.

@diegodelemos
Copy link
Member Author

Add openapi spec in get_openapi_spec() in app.py

Stemmed from reanahub/reana-job-controller#85

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant