Skip to content

Commit

Permalink
fix enum issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AnuradhaSK committed Oct 23, 2023
1 parent 1f7117b commit 657b832
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public class AssociatedRolesConfig {
@XmlType(name="AllowedAudienceEnum")
@XmlEnum(String.class)
public enum AllowedAudienceEnum {
@XmlEnumValue("organization") ORGANIZATION(String.valueOf("organization")), @XmlEnumValue("application") APPLICATION(String.valueOf("application"));

@XmlEnumValue("ORGANIZATION") ORGANIZATION(String.valueOf("ORGANIZATION")), @XmlEnumValue("APPLICATION") APPLICATION(String.valueOf("APPLICATION"));


private String value;
Expand Down Expand Up @@ -79,7 +80,7 @@ public AssociatedRolesConfig allowedAudience(AllowedAudienceEnum allowedAudience
return this;
}

@ApiModelProperty(example = "organization", required = true, value = "")
@ApiModelProperty(example = "ORGANIZATION", required = true, value = "")
@JsonProperty("allowedAudience")
@Valid
@NotNull(message = "Property allowedAudience cannot be null.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2963,11 +2963,11 @@ components:
properties:
allowedAudience:
type: string
example: "organization"
example: "ORGANIZATION"
enum:
- organization
- application
default: organization
- ORGANIZATION
- APPLICATION
default: ORGANIZATION
roles:
type: array
items:
Expand Down

0 comments on commit 657b832

Please sign in to comment.