Skip to content

Modifications in async_api to make it valid definition #2

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

Merged
merged 2 commits into from
Jul 18, 2024

Conversation

justinr1234
Copy link
Contributor

No description provided.

$RefParser
.dereference('./async_api/websocket_api.yaml')
.then((schema) => {
fs.writeFileSync('dist/async_api.json', JSON.stringify(schema, null, 2))
Copy link
Collaborator

Choose a reason for hiding this comment

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

are we not supporting API V2 by default? I believe all the validators have switched to rippled API v2 now

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is just a script, we can add v2 — can you make a follow up PR?

@@ -3,6 +3,7 @@
"template": "node addRequestTemplate.js"
},
"devDependencies": {
"json-schema-ref-parser": "^9.0.9",
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should use the better maintained version of this library -- https://www.npmjs.com/package/@apidevtools/json-schema-ref-parser

This was the suggestion of the library author on the npm page
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good I’ll add that as a follow up

@ckeshava
Copy link
Collaborator

FYI, I've updated the V2 spec file with these updates: 460ba5a

@justinr1234 justinr1234 merged commit 3cf2d39 into main Jul 18, 2024
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