Skip to content

Included @gustavoapaz to founding members. - #47

Merged
wing328 merged 1 commit into
OpenAPITools:masterfrom
gustavoapaz:patch-1
May 15, 2018
Merged

wing328 merged 1 commit into
OpenAPITools:masterfrom
gustavoapaz:patch-1

Conversation

@gustavoapaz

Copy link
Copy Markdown
Contributor

PR checklist

  • Read the contribution guidelines.
  • Ran the shell script under ./bin/ to update Petstore sample so that CIs can verify the change. (For instance, only need to run ./bin/{LANG}-petstore.sh and ./bin/security/{LANG}-petstore.sh if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in .\bin\windows\.
  • Filed the PR against the correct branch: Default: master.
  • Copied the technical committee to review the pull request if your PR is targeting a particular programming language.

Description of the PR

Included @gustavoapaz to founding members.

@wing328 wing328 added this to the 3.0.0 milestone May 15, 2018
@wing328
wing328 merged commit cd1fe3f into OpenAPITools:master May 15, 2018
aserkes pushed a commit to aserkes/openapi-generator that referenced this pull request Aug 29, 2022
Proposed implementation of fullProject property
nilskuhn pushed a commit to nilskuhn/openapi-generator that referenced this pull request Apr 6, 2023
chore(deps): update dependency @types/jest to v26.0.14
Kunal8954 pushed a commit to Kunal8954/openapi-generator that referenced this pull request Sep 9, 2026
The escapeJavaDoc lambda is registered in the codegen lambda map, so
templates must invoke it as {{#lambda.escapeJavaDoc}}. The bare
{{#escapeJavaDoc}} reference never resolves in the render context,
silently dropping every default value from @PARAM Javadoc lines and
breaking the "Samples up-to-date" check.

Add a minimal wildcard-accept-header spec (Accept header defaulting to
*/*) and its generated okhttp-gson sample so the escaping is visible:
the value now renders as *&OpenAPITools#47;* instead of prematurely closing the
Javadoc block.

Also tighten EscapeJavaDocLambdaTest to exercise the lambda through the
lambda map in a nested defaultValue section, the real codegen pattern.
wing328 pushed a commit that referenced this pull request Sep 23, 2026
* Escape JavaDoc default values safely

Prevent generated Java clients from becoming invalid when OpenAPI default values contain a JavaDoc comment terminator.

Co-authored-by: Copilot <[email protected]>

* Escape default values in all JavaDoc templates

Ensure every Java library template protects generated comments from default values containing a comment terminator.

Co-authored-by: Copilot <[email protected]>

* Keep native client line comments literal

Avoid applying JavaDoc escaping to a regular source comment where it changes the displayed default value unnecessarily.

Co-authored-by: Copilot <[email protected]>

* escapeJavaDoc lambda: fix reference via lambda map key

The escapeJavaDoc lambda is registered in the codegen lambda map, so
templates must invoke it as {{#lambda.escapeJavaDoc}}. The bare
{{#escapeJavaDoc}} reference never resolves in the render context,
silently dropping every default value from @PARAM Javadoc lines and
breaking the "Samples up-to-date" check.

Add a minimal wildcard-accept-header spec (Accept header defaulting to
*/*) and its generated okhttp-gson sample so the escaping is visible:
the value now renders as *&#47;* instead of prematurely closing the
Javadoc block.

Also tighten EscapeJavaDocLambdaTest to exercise the lambda through the
lambda map in a nested defaultValue section, the real codegen pattern.

* Fix java string example escaping for wildcard media types

String example values are escaped for use inside a double-quoted Java string
literal. Avoid mangling '*/' and '/*' (e.g. the '*/*' media type) by not
applying escapeUnsafeCharacters, which is only needed for javadoc comment
contexts. Also remove the unused HashMap import in EscapeJavaDocLambdaTest.

---------

Co-authored-by: Kunal8954 <[email protected]>
Co-authored-by: Copilot <[email protected]>
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