Skip to content

OpenAPI components for common DALI parameters #58

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

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

pdowler
Copy link
Collaborator

@pdowler pdowler commented May 13, 2025

These are small openapi components that can be included in another spec like TAP using the OpenAPI $ref mechanism.

Currently, this just describes the common query parameters in DALI. Even then, it includes only the ones that have a functional impact on current standards, so not: the old VERSION, unused REQUEST, and probably removable RUNID.

@pdowler
Copy link
Collaborator Author

pdowler commented May 16, 2025

see TAP PR #8 for how these are used to by another spec.

specify comma-separated name,location pair for a temporary table to be
uploaded and used in the request
schema:
type: string

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pattern: might also be useful here to enforce some simple regex for the comma separation.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, minimal pattern added (I did not try to handle the complexity of the location part of that param). The openapi linter I use thought it was OK, but swagger doesn't render anything so it's a little hard to verify and my regex-fu doesn't extend to ECMA-script so I hope those predefined character classes are standard.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did a quick check with regex101.com and it seems okay to me. \w covers [a-zA-Z0-9_], but not - as a character, if that's acceptable.

I agree with not tackling the location path.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think \w is roughly correct for valid table names... although it does not capture the fact that the name must start with an letter. I should fix that.

That regex101.com site is great - thnx for that pointer!

@pdowler
Copy link
Collaborator Author

pdowler commented May 21, 2025

I have also added very minimal reference from the document to the openapi component files, but have not tried to address the parts of the text that conflict: the case-insensitive parameter name bit.

That's one of the outstanding questions we have to discuss/decide (at the interop).

@pdowler pdowler marked this pull request as draft June 4, 2025 20:29
@pdowler
Copy link
Collaborator Author

pdowler commented Jun 4, 2025

converted to draft pending discussion of how to progress on case-insensitive -> OpenAPI-compliant

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

Successfully merging this pull request may close these issues.

2 participants