Skip to content

Commit

Permalink
add specification version number to template parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Madmat8 committed Jan 29, 2025
1 parent 88d5627 commit ac5a56f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,9 @@ public static synchronized String getAuthenticationUrl() {
return (String) ThreadLocalContextHolder.getVariable("authenticationUrl");
}

public static synchronized String getSpecificationVersionNumber() {
return (String) ThreadLocalContextHolder.getVariable("specificationVersionNumber");
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package {{ namedElementApiPackageName self }};
@io.swagger.v3.oas.annotations.OpenAPIDefinition(
info = @io.swagger.v3.oas.annotations.info.Info(
title = "{{ model.name }} API",
version = "1.0.0"
version = "{{ getSpecificationVersionNumber }}"
),
servers = {
{{# each (allAccessPointActor model) as |actor| }}
Expand Down
1 change: 1 addition & 0 deletions judo-psm-generator-jaxrs-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@
<generateOptionalTypes>true</generateOptionalTypes>
<generatePayloadValidator>true</generatePayloadValidator>
<generateOpenApiAnnotations>true</generateOpenApiAnnotations>
<specificationVersionNumber>1.0.0</specificationVersionNumber>
</templateParameters>
</configuration>
<dependencies>
Expand Down

0 comments on commit ac5a56f

Please sign in to comment.