Skip to content

Commit ef5dc1c

Browse files
authored
[Julia] Cleanup README docs (#15295)
* [Julia] fix documentation of API authorization in README files fix hierarchy level + add internal links + align wording across generators * [Julia] fix anchor links in documentation
1 parent b4d2c14 commit ef5dc1c

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

modules/openapi-generator/src/main/resources/julia-client/README.mustache

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ Class | Method
3636
{{#models}}{{#model}} - [{{{classname}}}]({{modelDocPath}}{{{classname}}}.md)
3737
{{/model}}{{/models}}
3838

39+
<a id="authorization"></a>
3940
## Authorization
40-
{{^authMethods}} Endpoints do not require authorization.
41-
{{/authMethods}}{{#authMethods}}{{#last}} Authentication schemes defined for the API:{{/last}}{{/authMethods}}
41+
{{^authMethods}}Endpoints do not require authorization.{{/authMethods}}
42+
{{#hasAuthMethods}}Authentication schemes defined for the API:{{/hasAuthMethods}}
4243
{{#authMethods}}
43-
## {{{name}}}
44+
<a id="{{name}}"></a>
45+
### {{{name}}}
4446
{{#isApiKey}}- **Type**: API key
4547

4648
Example

samples/client/petstore/julia/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,12 @@ Class | Method
5252
- [User](docs/User.md)
5353

5454

55+
<a id="authorization"></a>
5556
## Authorization
5657

57-
## petstore_auth
58+
Authentication schemes defined for the API:
59+
<a id="petstore_auth"></a>
60+
### petstore_auth
5861
- **Type**: OAuth
5962
- **Flow**: implicit
6063
- **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog
@@ -72,7 +75,8 @@ Example
7275
api = MyApi(client)
7376
result = callApi(api, args...; api_key)
7477
```
75-
## api_key
78+
<a id="api_key"></a>
79+
### api_key
7680
- **Type**: API key
7781

7882
Example

0 commit comments

Comments
 (0)