Skip to content

Commit

Permalink
feat(core): add library name to info object extension field
Browse files Browse the repository at this point in the history
  • Loading branch information
timonback committed Nov 24, 2023
1 parent 8bbda64 commit 9c48d00
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public static class Info {
* Extension properties for the Info block.
*/
@Nullable
private Map<String, String> extensionFields;
private Map<String, String> extensionFields = Map.of("x-generator", "springwolf");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ springwolf.docket.info.version=1.0.0
springwolf.docket.info.description=Springwolf example project to demonstrate springwolfs abilities
springwolf.docket.info.terms-of-service=http://asyncapi.org/terms
springwolf.docket.info.extension-fields.x-api-audience=company-internal
springwolf.docket.info.extension-fields.x-generator=springwolf
springwolf.docket.info.contact.name=springwolf
springwolf.docket.info.contact.email=[email protected]
springwolf.docket.info.contact.url=https://github.com/springwolf/springwolf-core
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"name": "Apache License 2.0",
"x-desc": "some description"
},
"x-api-audience": "company-internal"
"x-api-audience": "company-internal",
"x-generator": "springwolf"
},
"defaultContentType": "application/json",
"servers": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
},
"license": {
"name": "Apache License 2.0"
}
},
"x-generator": "springwolf"
},
"defaultContentType": "application/json",
"servers": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
},
"license": {
"name": "Apache License 2.0"
}
},
"x-generator": "springwolf"
},
"defaultContentType": "application/json",
"servers": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
},
"license": {
"name": "Apache License 2.0"
}
},
"x-generator": "springwolf"
},
"defaultContentType": "application/json",
"servers": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
},
"license": {
"name": "Apache License 2.0"
}
},
"x-generator": "springwolf"
},
"defaultContentType": "application/json",
"servers": {
Expand Down

0 comments on commit 9c48d00

Please sign in to comment.