-
Notifications
You must be signed in to change notification settings - Fork 1
Subsetting endpoint schema #172
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
Conversation
j-zimnowoda
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for explaining your reasoning in the PR overview, as it helped me to understand your decisions.
Morriz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, we are learning how to do this it seems?
But I get a headache now, seeing models duplicated all over the place and having different approaches and conventions introduced. I understand there might be a need to add all schemas under api.yaml's schemas, using lowercase for subschemas, and root models in CamelCase. Ok. But if we now know how the wiring works, can we please please please remove all the aberrations that are still there? The duplicated content etc? That historic workaround crap...
420c057 to
4f8a936
Compare
|
@j-zimnowoda approved the schema, so I can merge the logic into this pull request (as discussed), after addressing RBAC. |
j-zimnowoda
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, implement endpoints and we are done with otomi-api part
Morriz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
almost there...can we please keep the typings, it is not so hard to do so
|
I have a couple more things on my to-do:
|
Morriz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see only one space diff and it seems I am asked for a review? Did you ask me to review again or is github weird?
I ask this, because I just asked for some typing changes, but don't see them yet....
|
I did not ask for a review, I just pushed my latest changes. There is no need currently for another review. |
j-zimnowoda
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just few remarks.
8098015 to
2c1a9f5
Compare
|
Closes #175. |
j-zimnowoda
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are great
Co-authored-by: Sebastiaan Verbeek <sebastiaan.verbeek@redkubes.com>
src/openapi/definitions.yaml
Outdated
| token: | ||
| type: string | ||
| type: object | ||
| vault: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
Morriz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one inconsistency detected with crds
c511364 to
edc145c
Compare
Closes #169.
Please see and respond to my comments next to the code in the review window.
Note:
settings.yamltosettingsModels.yamlbecause it is so tangled up with the JS (otomi-models.tsand all the code that uses the models) code that I didn't want to spend time right now to fix it... I can still do it if you want but it's gonna take some time.npmscripts @j-zimnowoda was complaining about by re-ordering therunandrun-p.vendors/openapi/otomi-api.json. There is an issue where sometimes there is a unsuccessful bundle/dereference that it doesn't replace the schema with a new one, so you would be assuming all the code you commit would generate but in reality it doesn't do anything. Now the developer should be more mindful about the contents of this file.{ "settings": { "alerts": ... } }