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

Updated generated code and fixed isses #69

Merged
merged 10 commits into from
Dec 11, 2023
Merged

Conversation

britzl
Copy link
Collaborator

@britzl britzl commented Nov 27, 2023

  • Updated generated code to the latest API definitions.
  • Fixed issues with newlines in API descriptions
  • Updated example to match new authentication signature

Fixes #68

{{- if and (eq $parameter.Name "body") $parameter.Schema.Type }}
-- @param body ({{ $parameter.Schema.Type }}) {{ $parameter.Description }}
{{- if and (eq $parameter.In "body") $parameter.Schema.Type }}
-- @param body ({{ $parameter.Schema.Type }}) {{ $parameter.Description | stripNewlines }}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Some descriptions have embedded newlines which ends up messing with the generated code

{{- if and (eq $parameter.Name "body") $parameter.Schema.Ref }}
{{- if and (eq $parameter.In "body") $parameter.Schema.Ref }}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This change seems to have happened in November 2022. I saw that the other code generators transitioned to the use of "In" instead of "Name".

@britzl britzl requested a review from tomglenn November 27, 2023 09:55
@tomglenn tomglenn merged commit aa4fda4 into master Dec 11, 2023
3 checks passed
@tomglenn tomglenn deleted the dev-update-to-gprc-3.19 branch December 11, 2023 09:38
@tomglenn
Copy link
Contributor

Awesome, thanks @britzl 🙏

@britzl
Copy link
Collaborator Author

britzl commented Dec 11, 2023

@tomglenn can you also make a new release?

@tomglenn
Copy link
Contributor

@britzl 3.2.0 release made.

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.

Is this Defold extension still active?
2 participants