Skip to content

Commit

Permalink
Update attribute names for IdVProvider request and response
Browse files Browse the repository at this point in the history
  • Loading branch information
JayaShakthi97 committed Sep 29, 2024
1 parent a76694f commit 4f708a2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com).
* Copyright (c) 2024, WSO2 LLC. (http://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
Expand Down Expand Up @@ -53,11 +53,9 @@ public IdVProviderRequest type(String type) {
return this;
}

@ApiModelProperty(example = "ONFIDO", required = true, value = "")
@JsonProperty("Type")
@ApiModelProperty(example = "ONFIDO", value = "")
@JsonProperty("type")
@Valid
@NotNull(message = "Property type cannot be null.")

public String getType() {
return type;
}
Expand All @@ -73,11 +71,9 @@ public IdVProviderRequest name(String name) {
return this;
}

@ApiModelProperty(example = "ONFIDO", required = true, value = "")
@JsonProperty("Name")
@ApiModelProperty(example = "ONFIDO", value = "")
@JsonProperty("name")
@Valid
@NotNull(message = "Property name cannot be null.")

public String getName() {
return name;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com).
* Copyright (c) 2024, WSO2 LLC. (http://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
Expand Down Expand Up @@ -73,7 +73,7 @@ public IdVProviderResponse type(String type) {
}

@ApiModelProperty(example = "ONFIDO", value = "")
@JsonProperty("Type")
@JsonProperty("type")
@Valid
public String getType() {
return type;
Expand All @@ -91,7 +91,7 @@ public IdVProviderResponse name(String name) {
}

@ApiModelProperty(example = "ONFIDO", value = "")
@JsonProperty("Name")
@JsonProperty("name")
@Valid
public String getName() {
return name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,10 @@ components:
id:
type: string
example: 123e4567-e89b-12d3-a456-556642440000
Type:
type:
type: string
example: ONFIDO
Name:
name:
type: string
example: ONFIDO
description:
Expand All @@ -386,10 +386,10 @@ components:
IdVProviderRequest:
type: object
properties:
Type:
type:
type: string
example: ONFIDO
Name:
name:
type: string
example: ONFIDO
description:
Expand Down

0 comments on commit 4f708a2

Please sign in to comment.