You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@polaris.apache.org by "dimas-b (via GitHub)" <gi...@apache.org> on 2024/10/23 22:19:29 UTC

[PR] Fix javadoc in OpenAPI generated code [polaris]

dimas-b opened a new pull request, #401:
URL: https://github.com/apache/polaris/pull/401

   Apparently the OpenAPI generator is not escating `<` chars in javadoc property, which leads to commpilation warnings and actually invalid rendering of the affected javadoc.
   
   ```
   > Task :polaris-service:javadoc
   /home/.../polaris-service/build/generated/src/main/java/org/apache/polaris/service/catalog/api/IcebergRestCatalogApi.java:489: warning: invalid input: '<'
      * Load a table from the catalog.  The response contains both configuration and table metadata. The configuration, if non-empty is used as additional configuration for the table that overrides catalog configuration. For example, this configuration may change the FileIO implementation to be used for the table.  The response also contains the table's full metadata, matching the table metadata JSON file.  The catalog configuration may contain credentials that should be used for subsequent requests for the table. The configuration key \"token\" is used to pass an access token to be used as a bearer token for table requests. Otherwise, a token may be passed using a RFC 8693 token type as a configuration key. For example, \"urn:ietf:params:oauth:token-type:jwt=<JWT-token>\".
   ```
   
   It seems easiest to fix the corresponding comment in the Open API yaml file and avoid using `<` there.
   
   # Description
   
   Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
   
   Fixes # (issue)
   
   ## Type of change
   
   Please delete options that are not relevant.
   
   - [ ] Bug fix (non-breaking change which fixes an issue)
   - [ ] Documentation update
   - [ ] New feature (non-breaking change which adds functionality)
   - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
   - [ ] This change requires a documentation update
   
   # How Has This Been Tested?
   
   Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
   
   - [ ] Test A
   - [ ] Test B
   
   **Test Configuration**:
   * Hardware:
   * Toolchain:
   * SDK:
   
   # Checklist:
   
   Please delete options that are not relevant.
   
   - [ ] I have performed a self-review of my code
   - [ ] I have commented my code, particularly in hard-to-understand areas
   - [ ] I have made corresponding changes to the documentation
   - [ ] My changes generate no new warnings
   - [ ] If adding new functionality, I have discussed my implementation with the community using the linked GitHub issue
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix javadoc in OpenAPI generated code [polaris]

Posted by "eric-maynard (via GitHub)" <gi...@apache.org>.
eric-maynard commented on PR #401:
URL: https://github.com/apache/polaris/pull/401#issuecomment-2433853211

   Can we consider instead making this fix in the upstream [Iceberg spec](https://github.com/apache/iceberg/blob/02a988b09ab5b6e9aaa47c79e5e131313cf983cc/open-api/rest-catalog-open-api.yaml#L930)?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix javadoc in OpenAPI generated code [polaris]

Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on PR #401:
URL: https://github.com/apache/polaris/pull/401#issuecomment-2434037427

   _Generated_ javadoc is change by virtue of changing the pattern that generates it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix javadoc in OpenAPI generated code [polaris]

Posted by "flyrain (via GitHub)" <gi...@apache.org>.
flyrain merged PR #401:
URL: https://github.com/apache/polaris/pull/401


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix javadoc in OpenAPI generated code [polaris]

Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on PR #401:
URL: https://github.com/apache/polaris/pull/401#issuecomment-2434013056

   Upstreaming is not necessary. The pattern turned out to be local to Polaris, but it was using the unescaped way of including "notes".


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix javadoc in OpenAPI generated code [polaris]

Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on PR #401:
URL: https://github.com/apache/polaris/pull/401#issuecomment-2434019440

   The PR description has been updated, indeed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix javadoc in OpenAPI generated code [polaris]

Posted by "eric-maynard (via GitHub)" <gi...@apache.org>.
eric-maynard commented on PR #401:
URL: https://github.com/apache/polaris/pull/401#issuecomment-2434021730

   Nice! I think since we aren't changing any javadoc anymore the title might still be misleading. Either way, LGTM


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix javadoc in OpenAPI generated code [polaris]

Posted by "flyrain (via GitHub)" <gi...@apache.org>.
flyrain commented on PR #401:
URL: https://github.com/apache/polaris/pull/401#issuecomment-2433865629

   > Can we consider instead making this fix in the upstream [Iceberg spec]?
   
   We should do that, otherwise, the issue will come back next time Polaris syncs the Iceberg rest spec.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org