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

Align with OneSDK@3 #107

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

Align with OneSDK@3 #107

wants to merge 4 commits into from

Conversation

freaz
Copy link
Member

@freaz freaz commented Jul 18, 2023

Description

This needs to be major release of AST.

For changes see CHANGELOG

Todo

  • Split ApiKeySecurityScheme and have bodyType required for type: "body".
  • Future of repository and moving to one-sdk
  • Helper function are not AST 🤷

Fighting typescript-json-schema lib

Motivation and Context

Makes assertProviderJson to behave as expected

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTION_GUIDE document.
  • I haven't repeated the code. (DRY)
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@freaz freaz force-pushed the feat/update_provider_json branch from 1cc6728 to 4dd3826 Compare July 18, 2023 19:30
@freaz freaz changed the title Update provider json to align with OneSDK@3 Update provider.json to align with OneSDK@3 Jul 18, 2023
@freaz freaz force-pushed the feat/update_provider_json branch from 4dd3826 to e79149c Compare July 19, 2023 07:44
@freaz freaz force-pushed the feat/update_provider_json branch from e79149c to 7542b87 Compare July 19, 2023 07:57
Comment on lines 58 to 65
"bodyType": {
"$id": "ApiKeyBodyType",
"description": "Body type to inject security value to.",
"enum": [
"json"
],
"type": "string"
},
Copy link
Member Author

Choose a reason for hiding this comment

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

Some dark magic happening here. Compared to ApiKeyPlacement if I use $ref on the field, it will be still created in place but with id and ref, so there is circular reference. And I am unable to convince typescript-json-schema library to generate ApiKeyBodyType in definitions. 🤷

@freaz freaz changed the title Update provider.json to align with OneSDK@3 Align with OneSDK@3 Jul 19, 2023
@freaz freaz force-pushed the feat/update_provider_json branch from 9208fd0 to d9743f5 Compare July 19, 2023 09:22
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.

1 participant