From 90abf074bbd7ed4e228d61b9e50e4a1de27b1c73 Mon Sep 17 00:00:00 2001
From: Mattias-Sehlstedt <60173714+Mattias-Sehlstedt@users.noreply.github.com>
Date: Tue, 20 Jan 2026 20:29:32 +0100
Subject: [PATCH] test: mark password fields as having the password OpenApi
format
---
.../src/test/resources/1_2/petstore-1.2/user | 6 +-
.../src/test/resources/2_0/c/petstore.yaml | 2 +
.../test/resources/2_0/globalSecurity.json | 6 +-
.../2_0/long_description_issue_7839.json | 6 +-
.../src/test/resources/2_0/petstore-bash.json | 6 +-
.../test/resources/2_0/petstore-nullable.yaml | 2 +
.../src/test/resources/2_0/petstore-orig.json | 6 +-
.../test/resources/2_0/petstore-proto.yaml | 2 +
.../resources/2_0/petstore-vendor-mime.yaml | 2 +
.../2_0/petstore-with-date-field.yaml | 2 +
...r-testing-playframework-with-security.yaml | 1 +
...s-models-for-testing-saga-and-records.yaml | 2 +
...dels-for-testing-with-spring-pageable.yaml | 2 +
...th-operations-without-required-params.yaml | 2 +
.../2_0/petstore-with-spring-pageable.yaml | 2 +
.../src/test/resources/2_0/petstore.json | 6 +-
.../resources/2_0/petstore_issue_7999.json | 6 +-
.../src/test/resources/2_0/wordnik.json | 2456 -----------------
.../src/test/resources/2_0/wordnik.yaml | 1640 -----------
.../3_0/jetbrains/ManagementService-v3.json | 21 +-
.../test/resources/3_0/jetbrains/MgmtApi.json | 21 +-
...ith-fake-endpoints-models-for-testing.yaml | 2 +
.../3_0/snakecase-discriminator.yaml | 1 +
.../src/test/resources/petstore.json | 6 +-
.../org/openapitools/client/model/User.java | 2 +-
.../org/openapitools/client/model/User.java | 2 +-
.../org/openapitools/client/model/User.java | 2 +-
.../org/openapitools/client/model/User.java | 2 +-
.../api/openapi.yaml | 2 +
.../org/openapitools/client/model/User.java | 2 +-
.../java/apache-httpclient/api/openapi.yaml | 2 +
.../org/openapitools/client/model/User.java | 2 +-
.../petstore/java/feign-hc5/api/openapi.yaml | 2 +
.../org/openapitools/client/model/User.java | 2 +-
.../petstore/java/feign/api/openapi.yaml | 2 +
.../org/openapitools/client/model/User.java | 2 +-
.../org/openapitools/client/model/User.java | 2 +-
.../org/openapitools/client/model/User.java | 2 +-
.../org/openapitools/client/model/User.java | 2 +-
.../java/restclient-swagger2/api/openapi.yaml | 2 +
.../org/openapitools/client/model/User.java | 2 +-
.../api/openapi.yaml | 2 +
.../org/openapitools/client/model/User.java | 2 +-
.../api/openapi.yaml | 2 +
.../org/openapitools/client/model/User.java | 2 +-
.../petstore/java/restclient/api/openapi.yaml | 2 +
.../org/openapitools/client/model/User.java | 2 +-
.../petstore/java/resteasy/api/openapi.yaml | 2 +
.../org/openapitools/client/model/User.java | 2 +-
.../resttemplate-withXml/api/openapi.yaml | 2 +
.../org/openapitools/client/model/User.java | 2 +-
.../java/resttemplate/api/openapi.yaml | 2 +
.../org/openapitools/client/model/User.java | 2 +-
.../vertx-supportVertxFuture/api/openapi.yaml | 2 +
.../org/openapitools/client/model/User.java | 2 +-
.../petstore/java/vertx/api/openapi.yaml | 2 +
.../org/openapitools/client/model/User.java | 2 +-
.../api/openapi.yaml | 2 +
.../org/openapitools/client/model/User.java | 2 +-
.../petstore/java/vertx5/api/openapi.yaml | 2 +
.../org/openapitools/client/model/User.java | 2 +-
.../java/webclient-jakarta/api/openapi.yaml | 2 +
.../org/openapitools/client/model/User.java | 2 +-
.../java/webclient-swagger2/api/openapi.yaml | 2 +
.../org/openapitools/client/model/User.java | 2 +-
.../api/openapi.yaml | 2 +
.../org/openapitools/client/model/User.java | 2 +-
.../petstore/java/webclient/api/openapi.yaml | 2 +
.../org/openapitools/client/model/User.java | 2 +-
.../builds/explode-query/apis/UserApi.ts | 2 +-
.../org/openapitools/server/model/User.java | 2 +-
.../src/main/resources/META-INF/openapi.yml | 2 +
.../org/openapitools/server/model/User.java | 2 +-
.../src/main/resources/META-INF/openapi.yml | 2 +
.../org/openapitools/server/model/User.java | 2 +-
.../src/main/resources/META-INF/openapi.yml | 2 +
.../org/openapitools/server/model/User.java | 2 +-
.../src/main/resources/META-INF/openapi.yml | 2 +
.../org/openapitools/server/model/User.java | 2 +-
.../src/main/resources/META-INF/openapi.yml | 2 +
.../org/openapitools/server/model/User.java | 2 +-
.../src/main/resources/META-INF/openapi.yml | 2 +
.../app/apimodels/User.java | 2 +-
.../public/openapi.json | 1 +
.../mockserver/api/UserApiMockServer.java | 2 +-
.../gen/java/org/openapitools/model/User.java | 2 +-
.../gen/java/org/openapitools/model/User.java | 2 +-
.../src/main/resources/META-INF/openapi.yaml | 2 +
.../gen/java/org/openapitools/model/User.java | 2 +-
89 files changed, 173 insertions(+), 4164 deletions(-)
delete mode 100644 modules/openapi-generator/src/test/resources/2_0/wordnik.json
delete mode 100644 modules/openapi-generator/src/test/resources/2_0/wordnik.yaml
diff --git a/modules/openapi-generator/src/test/resources/1_2/petstore-1.2/user b/modules/openapi-generator/src/test/resources/1_2/petstore-1.2/user
index c9eb3f6ff783..ef0bdf4488d4 100644
--- a/modules/openapi-generator/src/test/resources/1_2/petstore-1.2/user
+++ b/modules/openapi-generator/src/test/resources/1_2/petstore-1.2/user
@@ -244,7 +244,8 @@
"description": "The password for login in clear text",
"required": true,
"type": "string",
- "paramType": "query"
+ "paramType": "query",
+ "format": "password"
}
],
"responseMessages": [
@@ -278,7 +279,8 @@
"type": "string"
},
"password": {
- "type": "string"
+ "type": "string",
+ "format": "password"
},
"phone": {
"type": "string"
diff --git a/modules/openapi-generator/src/test/resources/2_0/c/petstore.yaml b/modules/openapi-generator/src/test/resources/2_0/c/petstore.yaml
index b7ea03b1c779..10131f919bcb 100644
--- a/modules/openapi-generator/src/test/resources/2_0/c/petstore.yaml
+++ b/modules/openapi-generator/src/test/resources/2_0/c/petstore.yaml
@@ -632,6 +632,7 @@ paths:
description: The password for login in clear text
required: true
type: string
+ format: password
responses:
'200':
description: successful operation
@@ -872,6 +873,7 @@ definitions:
type: string
password:
type: string
+ format: password
phone:
type: string
userStatus:
diff --git a/modules/openapi-generator/src/test/resources/2_0/globalSecurity.json b/modules/openapi-generator/src/test/resources/2_0/globalSecurity.json
index efecc7ee6b48..fec8e891d350 100644
--- a/modules/openapi-generator/src/test/resources/2_0/globalSecurity.json
+++ b/modules/openapi-generator/src/test/resources/2_0/globalSecurity.json
@@ -652,7 +652,8 @@
"in": "query",
"description": "The password for login in clear text",
"required": false,
- "type": "string"
+ "type": "string",
+ "format": "password"
}
],
"responses": {
@@ -861,7 +862,8 @@
"type": "string"
},
"password": {
- "type": "string"
+ "type": "string",
+ "format": "password"
},
"phone": {
"type": "string"
diff --git a/modules/openapi-generator/src/test/resources/2_0/long_description_issue_7839.json b/modules/openapi-generator/src/test/resources/2_0/long_description_issue_7839.json
index e50678f6cdd0..4010bb3aeb9a 100644
--- a/modules/openapi-generator/src/test/resources/2_0/long_description_issue_7839.json
+++ b/modules/openapi-generator/src/test/resources/2_0/long_description_issue_7839.json
@@ -503,7 +503,8 @@
"in" : "query",
"description" : "The password for login in clear text",
"required" : true,
- "type" : "string"
+ "type" : "string",
+ "format": "password"
} ],
"responses" : {
"200" : {
@@ -711,7 +712,8 @@
"type" : "string"
},
"password" : {
- "type" : "string"
+ "type" : "string",
+ "format" : "password"
},
"phone" : {
"type" : "string"
diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore-bash.json b/modules/openapi-generator/src/test/resources/2_0/petstore-bash.json
index cc93278ae86a..327e3bca1da9 100644
--- a/modules/openapi-generator/src/test/resources/2_0/petstore-bash.json
+++ b/modules/openapi-generator/src/test/resources/2_0/petstore-bash.json
@@ -698,7 +698,8 @@
"in":"query",
"description":"The password for login in clear text",
"required":true,
- "type":"string"
+ "type":"string",
+ "format":"password"
}
],
"responses":{
@@ -942,7 +943,8 @@
"type":"string"
},
"password":{
- "type":"string"
+ "type":"string",
+ "format": "password"
},
"phone":{
"type":"string"
diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore-nullable.yaml b/modules/openapi-generator/src/test/resources/2_0/petstore-nullable.yaml
index b68004726ed8..9e232332bcbf 100644
--- a/modules/openapi-generator/src/test/resources/2_0/petstore-nullable.yaml
+++ b/modules/openapi-generator/src/test/resources/2_0/petstore-nullable.yaml
@@ -452,6 +452,7 @@ paths:
description: The password for login in clear text
required: true
type: string
+ format: password
responses:
'200':
description: successful operation
@@ -625,6 +626,7 @@ definitions:
type: string
password:
type: string
+ format: password
phone:
type: string
userStatus:
diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore-orig.json b/modules/openapi-generator/src/test/resources/2_0/petstore-orig.json
index 9f8689649350..8a7875edb6ee 100644
--- a/modules/openapi-generator/src/test/resources/2_0/petstore-orig.json
+++ b/modules/openapi-generator/src/test/resources/2_0/petstore-orig.json
@@ -652,7 +652,8 @@
"in": "query",
"description": "The password for login in clear text",
"required": false,
- "type": "string"
+ "type": "string",
+ "format": "password"
}
],
"responses": {
@@ -828,7 +829,8 @@
"type": "string"
},
"password": {
- "type": "string"
+ "type": "string",
+ "format": "password"
},
"phone": {
"type": "string"
diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore-proto.yaml b/modules/openapi-generator/src/test/resources/2_0/petstore-proto.yaml
index 77cbbb72c3b8..71c0d56915a4 100644
--- a/modules/openapi-generator/src/test/resources/2_0/petstore-proto.yaml
+++ b/modules/openapi-generator/src/test/resources/2_0/petstore-proto.yaml
@@ -453,6 +453,7 @@ paths:
description: The password for login in clear text
required: true
type: string
+ format: password
responses:
'200':
description: successful operation
@@ -626,6 +627,7 @@ definitions:
type: string
password:
type: string
+ format: password
phone:
type: string
userStatus:
diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore-vendor-mime.yaml b/modules/openapi-generator/src/test/resources/2_0/petstore-vendor-mime.yaml
index 118f66d37acb..1d7e5c5d001e 100644
--- a/modules/openapi-generator/src/test/resources/2_0/petstore-vendor-mime.yaml
+++ b/modules/openapi-generator/src/test/resources/2_0/petstore-vendor-mime.yaml
@@ -448,6 +448,7 @@ paths:
description: The password for login in clear text
required: true
type: string
+ format: password
responses:
'200':
description: successful operation
@@ -839,6 +840,7 @@ definitions:
type: string
password:
type: string
+ format: password
phone:
type: string
userStatus:
diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore-with-date-field.yaml b/modules/openapi-generator/src/test/resources/2_0/petstore-with-date-field.yaml
index 28d56302b7b8..09988324aa09 100644
--- a/modules/openapi-generator/src/test/resources/2_0/petstore-with-date-field.yaml
+++ b/modules/openapi-generator/src/test/resources/2_0/petstore-with-date-field.yaml
@@ -442,6 +442,7 @@ paths:
description: The password for login in clear text
required: true
type: string
+ format: password
responses:
'200':
description: successful operation
@@ -615,6 +616,7 @@ definitions:
type: string
password:
type: string
+ format: password
phone:
type: string
userStatus:
diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-for-testing-playframework-with-security.yaml b/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-for-testing-playframework-with-security.yaml
index 4ef75a199d37..c6ec5afb9cac 100644
--- a/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-for-testing-playframework-with-security.yaml
+++ b/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-for-testing-playframework-with-security.yaml
@@ -181,6 +181,7 @@ definitions:
type: string
password:
type: string
+ format: password
phone:
type: string
userStatus:
diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing-saga-and-records.yaml b/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing-saga-and-records.yaml
index babf447f2f1a..f6c00bfa4951 100644
--- a/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing-saga-and-records.yaml
+++ b/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing-saga-and-records.yaml
@@ -639,6 +639,7 @@ paths:
description: The password for login in clear text
required: true
type: string
+ format: password
responses:
'200':
description: successful operation
@@ -822,6 +823,7 @@ definitions:
type: string
password:
type: string
+ format: password
phone:
type: string
userStatus:
diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing-with-spring-pageable.yaml b/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing-with-spring-pageable.yaml
index b903c4f68c21..b318b67bb716 100644
--- a/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing-with-spring-pageable.yaml
+++ b/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing-with-spring-pageable.yaml
@@ -482,6 +482,7 @@ paths:
description: The password for login in clear text
required: true
type: string
+ format: password
responses:
'200':
description: successful operation
@@ -1323,6 +1324,7 @@ definitions:
type: string
password:
type: string
+ format: password
phone:
type: string
userStatus:
diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore-with-operations-without-required-params.yaml b/modules/openapi-generator/src/test/resources/2_0/petstore-with-operations-without-required-params.yaml
index cdc9e693f444..8a2de32adb8e 100644
--- a/modules/openapi-generator/src/test/resources/2_0/petstore-with-operations-without-required-params.yaml
+++ b/modules/openapi-generator/src/test/resources/2_0/petstore-with-operations-without-required-params.yaml
@@ -449,6 +449,7 @@ paths:
description: The password for login in clear text
required: true
type: string
+ format: password
responses:
'200':
description: successful operation
@@ -622,6 +623,7 @@ definitions:
type: string
password:
type: string
+ format: password
phone:
type: string
userStatus:
diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore-with-spring-pageable.yaml b/modules/openapi-generator/src/test/resources/2_0/petstore-with-spring-pageable.yaml
index fbf17da64240..8f127576ba6a 100644
--- a/modules/openapi-generator/src/test/resources/2_0/petstore-with-spring-pageable.yaml
+++ b/modules/openapi-generator/src/test/resources/2_0/petstore-with-spring-pageable.yaml
@@ -476,6 +476,7 @@ paths:
description: The password for login in clear text
required: true
type: string
+ format: password
responses:
'200':
description: successful operation
@@ -658,6 +659,7 @@ definitions:
type: string
password:
type: string
+ format: password
phone:
type: string
userStatus:
diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore.json b/modules/openapi-generator/src/test/resources/2_0/petstore.json
index 5deda4b94ce5..9108563a9377 100644
--- a/modules/openapi-generator/src/test/resources/2_0/petstore.json
+++ b/modules/openapi-generator/src/test/resources/2_0/petstore.json
@@ -663,7 +663,8 @@
"in": "query",
"description": "The password for login in clear text",
"required": false,
- "type": "string"
+ "type": "string",
+ "format": "password"
}
],
"responses": {
@@ -839,7 +840,8 @@
"type": "string"
},
"password": {
- "type": "string"
+ "type": "string",
+ "format": "password"
},
"phone": {
"type": "string"
diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore_issue_7999.json b/modules/openapi-generator/src/test/resources/2_0/petstore_issue_7999.json
index c48c37f0f9a4..493fce847cbe 100644
--- a/modules/openapi-generator/src/test/resources/2_0/petstore_issue_7999.json
+++ b/modules/openapi-generator/src/test/resources/2_0/petstore_issue_7999.json
@@ -663,7 +663,8 @@
"in": "query",
"description": "The password for login in clear text",
"required": false,
- "type": "string"
+ "type": "string",
+ "format": "password"
}
],
"responses": {
@@ -839,7 +840,8 @@
"type": "string"
},
"password": {
- "type": "string"
+ "type": "string",
+ "format": "password"
},
"phone": {
"type": "string"
diff --git a/modules/openapi-generator/src/test/resources/2_0/wordnik.json b/modules/openapi-generator/src/test/resources/2_0/wordnik.json
deleted file mode 100644
index ca4ec3ef45c5..000000000000
--- a/modules/openapi-generator/src/test/resources/2_0/wordnik.json
+++ /dev/null
@@ -1,2456 +0,0 @@
-{
- "swagger": "2.0",
- "info": {
- "title": "The Wordnik Public API",
- "version": "4.0"
- },
- "host": "api.wordnik.com",
- "basePath": "/v4",
- "schemes": [
- "https"
- ],
- "security": [
- {
- "apiKey": []
- }
- ],
- "paths": {
- "/account.json/apiTokenStatus": {
- "get": {
- "tags": [
- "account"
- ],
- "summary": "Returns usage statistics for the API account.",
- "operationId": "getApiTokenStatus",
- "parameters": [
- {
- "name": "api_key",
- "in": "header",
- "description": "Wordnik authentication token",
- "required": false,
- "type": "string"
- }
- ],
- "responses": {
- "200": {
- "description": "Usage statistics for the supplied API key",
- "schema": {
- "$ref": "#/definitions/ApiTokenStatus"
- }
- },
- "400": {
- "description": "No token supplied."
- },
- "404": {
- "description": "No API account with supplied token."
- }
- }
- }
- },
- "/account.json/authenticate/{username}": {
- "get": {
- "tags": [
- "account"
- ],
- "summary": "Authenticates a User",
- "operationId": "authenticate",
- "parameters": [
- {
- "name": "username",
- "in": "path",
- "description": "A confirmed Wordnik username",
- "required": true,
- "type": "string"
- },
- {
- "name": "password",
- "in": "query",
- "description": "The user's password",
- "required": true,
- "type": "string"
- }
- ],
- "responses": {
- "200": {
- "description": "A valid authentication token",
- "schema": {
- "$ref": "#/definitions/AuthenticationToken"
- }
- },
- "403": {
- "description": "Account not available."
- },
- "404": {
- "description": "User not found."
- }
- }
- },
- "post": {
- "tags": [
- "account"
- ],
- "summary": "Authenticates a user",
- "operationId": "authenticatePost",
- "parameters": [
- {
- "name": "username",
- "in": "path",
- "description": "A confirmed Wordnik username",
- "required": true,
- "type": "string"
- },
- {
- "in": "body",
- "name": "body",
- "schema": {
- "type": "string"
- },
- "description": "The user's password",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "A valid authentication token",
- "schema": {
- "$ref": "#/definitions/AuthenticationToken"
- }
- },
- "403": {
- "description": "Account not available."
- },
- "404": {
- "description": "User not found."
- }
- }
- }
- },
- "/account.json/user": {
- "get": {
- "tags": [
- "account"
- ],
- "summary": "Returns the logged-in User",
- "description": "Requires a valid auth_token to be set.",
- "operationId": "getLoggedInUser",
- "parameters": [
- {
- "name": "auth_token",
- "in": "header",
- "description": "The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)",
- "required": true,
- "type": "string"
- }
- ],
- "responses": {
- "200": {
- "description": "The logged-in user",
- "schema": {
- "$ref": "#/definitions/User"
- }
- },
- "403": {
- "description": "Not logged in."
- },
- "404": {
- "description": "User not found."
- }
- }
- }
- },
- "/account.json/wordLists": {
- "get": {
- "tags": [
- "account"
- ],
- "summary": "Fetches WordList objects for the logged-in user.",
- "operationId": "getWordListsForLoggedInUser",
- "parameters": [
- {
- "name": "auth_token",
- "in": "header",
- "description": "auth_token of logged-in user",
- "required": true,
- "type": "string"
- },
- {
- "name": "skip",
- "in": "query",
- "description": "Results to skip",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "limit",
- "in": "query",
- "description": "Maximum number of results to return",
- "required": false,
- "type": "integer",
- "format": "int32"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/WordList"
- }
- }
- },
- "403": {
- "description": "Not authenticated."
- },
- "404": {
- "description": "User account not found."
- }
- }
- }
- },
- "/word.json/{word}": {
- "get": {
- "tags": [
- "word"
- ],
- "summary": "Given a word as a string, returns the WordObject that represents it",
- "operationId": "getWord",
- "parameters": [
- {
- "name": "word",
- "in": "path",
- "description": "String value of WordObject to return",
- "required": true,
- "type": "string"
- },
- {
- "name": "useCanonical",
- "in": "query",
- "description": "If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.",
- "required": false,
- "type": "string"
- },
- {
- "name": "includeSuggestions",
- "in": "query",
- "description": "Return suggestions (for correct spelling, case variants, etc.)",
- "required": false,
- "type": "string"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "$ref": "#/definitions/WordObject"
- }
- },
- "400": {
- "description": "Invalid word supplied."
- }
- }
- }
- },
- "/word.json/{word}/audio": {
- "get": {
- "tags": [
- "word"
- ],
- "summary": "Fetches audio metadata for a word.",
- "description": "The metadata includes a time-expiring fileUrl which allows reading the audio file directly from the API. Currently only audio pronunciations from the American Heritage Dictionary in mp3 format are supported.",
- "operationId": "getAudio",
- "parameters": [
- {
- "name": "word",
- "in": "path",
- "description": "Word to get audio for.",
- "required": true,
- "type": "string"
- },
- {
- "name": "useCanonical",
- "in": "query",
- "description": "Use the canonical form of the word",
- "required": false,
- "type": "string"
- },
- {
- "name": "limit",
- "in": "query",
- "description": "Maximum number of results to return",
- "required": false,
- "type": "integer",
- "format": "int32"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/AudioFile"
- }
- }
- },
- "400": {
- "description": "Invalid word supplied."
- }
- }
- }
- },
- "/word.json/{word}/definitions": {
- "get": {
- "tags": [
- "word"
- ],
- "summary": "Return definitions for a word",
- "operationId": "getDefinitions",
- "parameters": [
- {
- "name": "word",
- "in": "path",
- "description": "Word to return definitions for",
- "required": true,
- "type": "string"
- },
- {
- "name": "limit",
- "in": "query",
- "description": "Maximum number of results to return",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "partOfSpeech",
- "in": "query",
- "description": "CSV list of part-of-speech types",
- "required": false,
- "type": "string"
- },
- {
- "name": "includeRelated",
- "in": "query",
- "description": "Return related words with definitions",
- "required": false,
- "type": "string"
- },
- {
- "name": "sourceDictionaries",
- "in": "query",
- "description": "Source dictionary to return definitions from. If 'all' is received, results are returned from all sources. If multiple values are received (e.g. 'century,wiktionary'), results are returned from the first specified dictionary that has definitions. If left blank, results are returned from the first dictionary that has definitions. By default, dictionaries are searched in this order: ahd, wiktionary, webster, century, wordnet",
- "required": false,
- "type": "array",
- "items": {
- "type": "string"
- },
- "collectionFormat": "csv"
- },
- {
- "name": "useCanonical",
- "in": "query",
- "description": "If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.",
- "required": false,
- "type": "string"
- },
- {
- "name": "includeTags",
- "in": "query",
- "description": "Return a closed set of XML tags in response",
- "required": false,
- "type": "string"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Definition"
- }
- }
- },
- "400": {
- "description": "Invalid word supplied."
- },
- "404": {
- "description": "No definitions found."
- }
- }
- }
- },
- "/word.json/{word}/etymologies": {
- "get": {
- "tags": [
- "word"
- ],
- "summary": "Fetches etymology data",
- "operationId": "getEtymologies",
- "parameters": [
- {
- "name": "word",
- "in": "path",
- "description": "Word to return",
- "required": true,
- "type": "string"
- },
- {
- "name": "useCanonical",
- "in": "query",
- "description": "If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.",
- "required": false,
- "type": "string"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "400": {
- "description": "Invalid word supplied."
- },
- "404": {
- "description": "No definitions found."
- }
- }
- }
- },
- "/word.json/{word}/examples": {
- "get": {
- "tags": [
- "word"
- ],
- "summary": "Returns examples for a word",
- "operationId": "getExamples",
- "parameters": [
- {
- "name": "word",
- "in": "path",
- "description": "Word to return examples for",
- "required": true,
- "type": "string"
- },
- {
- "name": "includeDuplicates",
- "in": "query",
- "description": "Show duplicate examples from different sources",
- "required": false,
- "type": "string"
- },
- {
- "name": "useCanonical",
- "in": "query",
- "description": "If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.",
- "required": false,
- "type": "string"
- },
- {
- "name": "skip",
- "in": "query",
- "description": "Results to skip",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "limit",
- "in": "query",
- "description": "Maximum number of results to return",
- "required": false,
- "type": "integer",
- "format": "int32"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "$ref": "/definitions/ExampleSearchResults"
- },
- "400": {
- "description": "Invalid word supplied."
- }
- }
- }
- },
- "/word.json/{word}/frequency": {
- "get": {
- "tags": [
- "word"
- ],
- "summary": "Returns word usage over time",
- "operationId": "getWordFrequency",
- "parameters": [
- {
- "name": "word",
- "in": "path",
- "description": "Word to return",
- "required": true,
- "type": "string"
- },
- {
- "name": "useCanonical",
- "in": "query",
- "description": "If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.",
- "required": false,
- "type": "string"
- },
- {
- "name": "startYear",
- "in": "query",
- "description": "Starting Year",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "endYear",
- "in": "query",
- "description": "Ending Year",
- "required": false,
- "type": "integer",
- "format": "int32"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "$ref": "#/definitions/FrequencySummary"
- }
- },
- "400": {
- "description": "Invalid word supplied."
- },
- "404": {
- "description": "No results."
- }
- }
- }
- },
- "/word.json/{word}/hyphenation": {
- "get": {
- "tags": [
- "word"
- ],
- "summary": "Returns syllable information for a word",
- "operationId": "getHyphenation",
- "parameters": [
- {
- "name": "word",
- "in": "path",
- "description": "Word to get syllables for",
- "required": true,
- "type": "string"
- },
- {
- "name": "useCanonical",
- "in": "query",
- "description": "If true will try to return a correct word root ('cats' -> 'cat'). If false returns exactly what was requested.",
- "required": false,
- "type": "string"
- },
- {
- "name": "sourceDictionary",
- "in": "query",
- "description": "Get from a single dictionary. Valid options: ahd, century, wiktionary, webster, and wordnet.",
- "required": false,
- "type": "string"
- },
- {
- "name": "limit",
- "in": "query",
- "description": "Maximum number of results to return",
- "required": false,
- "type": "integer",
- "format": "int32"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "type": "array",
- "items": {
- "schema": {
- "$ref": "#/definitions/Syllable"
- }
- }
- },
- "400": {
- "description": "Invalid word supplied."
- }
- }
- }
- },
- "/word.json/{word}/phrases": {
- "get": {
- "tags": [
- "word"
- ],
- "summary": "Fetches bi-gram phrases for a word",
- "operationId": "getPhrases",
- "parameters": [
- {
- "name": "word",
- "in": "path",
- "description": "Word to fetch phrases for",
- "required": true,
- "type": "string"
- },
- {
- "name": "limit",
- "in": "query",
- "description": "Maximum number of results to return",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "wlmi",
- "in": "query",
- "description": "Minimum WLMI for the phrase",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "useCanonical",
- "in": "query",
- "description": "If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.",
- "required": false,
- "type": "string"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Bigram"
- }
- }
- },
- "400": {
- "description": "Invalid word supplied."
- }
- }
- }
- },
- "/word.json/{word}/pronunciations": {
- "get": {
- "tags": [
- "word"
- ],
- "summary": "Returns text pronunciations for a given word",
- "operationId": "getTextPronunciations",
- "parameters": [
- {
- "name": "word",
- "in": "path",
- "description": "Word to get pronunciations for",
- "required": true,
- "type": "string"
- },
- {
- "name": "useCanonical",
- "in": "query",
- "description": "If true will try to return a correct word root ('cats' -> 'cat'). If false returns exactly what was requested.",
- "required": false,
- "type": "string"
- },
- {
- "name": "sourceDictionary",
- "in": "query",
- "description": "Get from a single dictionary",
- "required": false,
- "type": "string"
- },
- {
- "name": "typeFormat",
- "in": "query",
- "description": "Text pronunciation type",
- "required": false,
- "type": "string"
- },
- {
- "name": "limit",
- "in": "query",
- "description": "Maximum number of results to return",
- "required": false,
- "type": "integer",
- "format": "int32"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "type": "array",
- "items": {
- "schema": {
- "$ref": "#/definitions/TextPron"
- }
- }
- },
- "400": {
- "description": "Invalid word supplied."
- }
- }
- }
- },
- "/word.json/{word}/relatedWords": {
- "get": {
- "tags": [
- "word"
- ],
- "summary": "Given a word as a string, returns relationships from the Word Graph",
- "operationId": "getRelatedWords",
- "parameters": [
- {
- "name": "word",
- "in": "path",
- "description": "Word to fetch relationships for",
- "required": true,
- "type": "string"
- },
- {
- "name": "useCanonical",
- "in": "query",
- "description": "If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.",
- "required": false,
- "type": "string"
- },
- {
- "name": "relationshipTypes",
- "in": "query",
- "description": "Limits the total results per type of relationship type",
- "required": false,
- "type": "string"
- },
- {
- "name": "limitPerRelationshipType",
- "in": "query",
- "description": "Restrict to the supplied relationship types",
- "required": false,
- "type": "integer",
- "format": "int32"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "type": "array",
- "items": {
- "schema": {
- "$ref": "#/definitions/Related"
- }
- }
- },
- "400": {
- "description": "Invalid word supplied."
- }
- }
- }
- },
- "/word.json/{word}/topExample": {
- "get": {
- "tags": [
- "word"
- ],
- "summary": "Returns a top example for a word",
- "operationId": "getTopExample",
- "parameters": [
- {
- "name": "word",
- "in": "path",
- "description": "Word to fetch examples for",
- "required": true,
- "type": "string"
- },
- {
- "name": "useCanonical",
- "in": "query",
- "description": "If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.",
- "required": false,
- "type": "string"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "$ref": "#/definitions/Example"
- }
- },
- "400": {
- "description": "Invalid word supplied."
- }
- }
- }
- },
- "/wordList.json/{permalink}": {
- "get": {
- "tags": [
- "wordList"
- ],
- "summary": "Fetches a WordList by ID",
- "operationId": "getWordListByPermalink",
- "parameters": [
- {
- "name": "permalink",
- "in": "path",
- "description": "permalink of WordList to fetch",
- "required": true,
- "type": "string"
- },
- {
- "name": "auth_token",
- "in": "header",
- "description": "The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)",
- "required": true,
- "type": "string"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "$ref": "#/definitions/WordList"
- }
- },
- "400": {
- "description": "Invalid ID supplied"
- },
- "403": {
- "description": "Not Authorized to access WordList"
- },
- "404": {
- "description": "WordList not found"
- }
- }
- },
- "put": {
- "tags": [
- "wordList"
- ],
- "summary": "Updates an existing WordList",
- "operationId": "updateWordList",
- "parameters": [
- {
- "name": "permalink",
- "in": "path",
- "description": "permalink of WordList to update",
- "required": true,
- "type": "string"
- },
- {
- "in": "body",
- "name": "body",
- "description": "Updated WordList",
- "required": false,
- "schema": {
- "$ref": "#/definitions/WordList"
- }
- },
- {
- "name": "auth_token",
- "in": "header",
- "description": "The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)",
- "required": true,
- "type": "string"
- }
- ],
- "responses": {
- "200": {
- "description": "success"
- },
- "400": {
- "description": "Invalid ID supplied"
- },
- "403": {
- "description": "Not Authorized to update WordList"
- },
- "404": {
- "description": "WordList not found"
- }
- }
- },
- "delete": {
- "tags": [
- "wordList"
- ],
- "summary": "Deletes an existing WordList",
- "operationId": "deleteWordList",
- "parameters": [
- {
- "name": "permalink",
- "in": "path",
- "description": "ID of WordList to delete",
- "required": true,
- "type": "string"
- },
- {
- "name": "auth_token",
- "in": "header",
- "description": "The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)",
- "required": true,
- "type": "string"
- }
- ],
- "responses": {
- "200": {
- "description": "success"
- },
- "400": {
- "description": "Invalid ID supplied"
- },
- "403": {
- "description": "Not Authorized to delete WordList"
- },
- "404": {
- "description": "WordList not found"
- }
- }
- }
- },
- "/wordList.json/{permalink}/deleteWords": {
- "post": {
- "tags": [
- "wordList"
- ],
- "summary": "Removes words from a WordList",
- "operationId": "deleteWordsFromWordList",
- "parameters": [
- {
- "name": "permalink",
- "in": "path",
- "description": "permalink of WordList to use",
- "required": true,
- "type": "string"
- },
- {
- "in": "body",
- "name": "body",
- "description": "Words to remove from WordList",
- "required": false,
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/StringValue"
- }
- }
- },
- {
- "name": "auth_token",
- "in": "header",
- "description": "The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)",
- "required": true,
- "type": "string"
- }
- ],
- "responses": {
- "200": {
- "description": "success"
- },
- "400": {
- "description": "Invalid permalink supplied"
- },
- "403": {
- "description": "Not Authorized to modify WordList"
- },
- "404": {
- "description": "WordList not found"
- }
- }
- }
- },
- "/wordList.json/{permalink}/words": {
- "get": {
- "tags": [
- "wordList"
- ],
- "summary": "Fetches words in a WordList",
- "operationId": "getWordListWords",
- "parameters": [
- {
- "name": "permalink",
- "in": "path",
- "description": "ID of WordList to use",
- "required": true,
- "type": "string"
- },
- {
- "name": "sortBy",
- "in": "query",
- "description": "Field to sort by",
- "required": false,
- "type": "string"
- },
- {
- "name": "sortOrder",
- "in": "query",
- "description": "Direction to sort",
- "required": false,
- "type": "string"
- },
- {
- "name": "skip",
- "in": "query",
- "description": "Results to skip",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "limit",
- "in": "query",
- "description": "Maximum number of results to return",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "auth_token",
- "in": "header",
- "description": "The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)",
- "required": true,
- "type": "string"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "type": "array",
- "items": {
- "schema": {
- "$ref": "#/definitions/WordListWord"
- }
- }
- },
- "400": {
- "description": "Invalid ID supplied"
- },
- "403": {
- "description": "Not Authorized to access WordList"
- },
- "404": {
- "description": "WordList not found"
- }
- }
- },
- "post": {
- "tags": [
- "wordList"
- ],
- "summary": "Adds words to a WordList",
- "operationId": "addWordsToWordList",
- "parameters": [
- {
- "name": "permalink",
- "in": "path",
- "description": "permalink of WordList to user",
- "required": true,
- "type": "string"
- },
- {
- "in": "body",
- "name": "body",
- "description": "Array of words to add to WordList",
- "required": false,
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/StringValue"
- }
- }
- },
- {
- "name": "auth_token",
- "in": "header",
- "description": "The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)",
- "required": true,
- "type": "string"
- }
- ],
- "responses": {
- "200": {
- "description": "success"
- },
- "400": {
- "description": "Invalid permalink supplied"
- },
- "403": {
- "description": "Not Authorized to access WordList"
- },
- "404": {
- "description": "WordList not found"
- }
- }
- }
- },
- "/wordLists.json": {
- "post": {
- "tags": [
- "wordLists"
- ],
- "summary": "Creates a WordList.",
- "operationId": "createWordList",
- "parameters": [
- {
- "in": "body",
- "name": "body",
- "description": "WordList to create",
- "required": false,
- "schema": {
- "$ref": "#/definitions/WordList"
- }
- },
- {
- "name": "auth_token",
- "in": "header",
- "description": "The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)",
- "required": true,
- "type": "string"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "$ref": "#/definitions/WordList"
- }
- },
- "400": {
- "description": "Invalid WordList supplied or mandatory fields are missing"
- },
- "403": {
- "description": "Not authenticated"
- },
- "404": {
- "description": "WordList owner not found"
- }
- }
- }
- },
- "/words.json/randomWord": {
- "get": {
- "tags": [
- "words"
- ],
- "summary": "Returns a single random WordObject",
- "operationId": "getRandomWord",
- "parameters": [
- {
- "name": "hasDictionaryDef",
- "in": "query",
- "description": "Only return words with dictionary definitions",
- "required": false,
- "type": "string"
- },
- {
- "name": "includePartOfSpeech",
- "in": "query",
- "description": "CSV part-of-speech values to include",
- "required": false,
- "type": "string"
- },
- {
- "name": "excludePartOfSpeech",
- "in": "query",
- "description": "CSV part-of-speech values to exclude",
- "required": false,
- "type": "string"
- },
- {
- "name": "minCorpusCount",
- "in": "query",
- "description": "Minimum corpus frequency for terms",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "maxCorpusCount",
- "in": "query",
- "description": "Maximum corpus frequency for terms",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "minDictionaryCount",
- "in": "query",
- "description": "Minimum dictionary count",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "maxDictionaryCount",
- "in": "query",
- "description": "Maximum dictionary count",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "minLength",
- "in": "query",
- "description": "Minimum word length",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "maxLength",
- "in": "query",
- "description": "Maximum word length",
- "required": false,
- "type": "integer",
- "format": "int32"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "$ref": "#/definitions/WordObject"
- }
- },
- "404": {
- "description": "No word found."
- }
- }
- }
- },
- "/words.json/randomWords": {
- "get": {
- "tags": [
- "words"
- ],
- "summary": "Returns an array of random WordObjects",
- "operationId": "getRandomWords",
- "parameters": [
- {
- "name": "hasDictionaryDef",
- "in": "query",
- "description": "Only return words with dictionary definitions",
- "required": false,
- "type": "string"
- },
- {
- "name": "includePartOfSpeech",
- "in": "query",
- "description": "CSV part-of-speech values to include",
- "required": false,
- "type": "string"
- },
- {
- "name": "excludePartOfSpeech",
- "in": "query",
- "description": "CSV part-of-speech values to exclude",
- "required": false,
- "type": "string"
- },
- {
- "name": "minCorpusCount",
- "in": "query",
- "description": "Minimum corpus frequency for terms",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "maxCorpusCount",
- "in": "query",
- "description": "Maximum corpus frequency for terms",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "minDictionaryCount",
- "in": "query",
- "description": "Minimum dictionary count",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "maxDictionaryCount",
- "in": "query",
- "description": "Maximum dictionary count",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "minLength",
- "in": "query",
- "description": "Minimum word length",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "maxLength",
- "in": "query",
- "description": "Maximum word length",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "sortBy",
- "in": "query",
- "description": "Attribute to sort by",
- "required": false,
- "type": "string"
- },
- {
- "name": "sortOrder",
- "in": "query",
- "description": "Sort direction",
- "required": false,
- "type": "string"
- },
- {
- "name": "limit",
- "in": "query",
- "description": "Maximum number of results to return",
- "required": false,
- "type": "integer",
- "format": "int32"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "type": "array",
- "items": {
- "schema": {
- "$ref": "#/definitions/WordObject"
- }
- }
- },
- "400": {
- "description": "Invalid term supplied."
- },
- "404": {
- "description": "No results."
- }
- }
- }
- },
- "/words.json/reverseDictionary": {
- "get": {
- "tags": [
- "words"
- ],
- "summary": "Reverse dictionary search",
- "operationId": "reverseDictionary",
- "parameters": [
- {
- "name": "query",
- "in": "query",
- "description": "Search term",
- "required": true,
- "type": "string"
- },
- {
- "name": "findSenseForWord",
- "in": "query",
- "description": "Restricts words and finds closest sense",
- "required": false,
- "type": "string"
- },
- {
- "name": "includeSourceDictionaries",
- "in": "query",
- "description": "Only include these comma-delimited source dictionaries",
- "required": false,
- "type": "string"
- },
- {
- "name": "excludeSourceDictionaries",
- "in": "query",
- "description": "Exclude these comma-delimited source dictionaries",
- "required": false,
- "type": "string"
- },
- {
- "name": "includePartOfSpeech",
- "in": "query",
- "description": "Only include these comma-delimited parts of speech",
- "required": false,
- "type": "string"
- },
- {
- "name": "excludePartOfSpeech",
- "in": "query",
- "description": "Exclude these comma-delimited parts of speech",
- "required": false,
- "type": "string"
- },
- {
- "name": "minCorpusCount",
- "in": "query",
- "description": "Minimum corpus frequency for terms",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "maxCorpusCount",
- "in": "query",
- "description": "Maximum corpus frequency for terms",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "minLength",
- "in": "query",
- "description": "Minimum word length",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "maxLength",
- "in": "query",
- "description": "Maximum word length",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "expandTerms",
- "in": "query",
- "description": "Expand terms",
- "required": false,
- "type": "string"
- },
- {
- "name": "includeTags",
- "in": "query",
- "description": "Return a closed set of XML tags in response",
- "required": false,
- "type": "string"
- },
- {
- "name": "sortBy",
- "in": "query",
- "description": "Attribute to sort by",
- "required": false,
- "type": "string"
- },
- {
- "name": "sortOrder",
- "in": "query",
- "description": "Sort direction",
- "required": false,
- "type": "string"
- },
- {
- "name": "skip",
- "in": "query",
- "description": "Results to skip",
- "required": false,
- "type": "string"
- },
- {
- "name": "limit",
- "in": "query",
- "description": "Maximum number of results to return",
- "required": false,
- "type": "integer",
- "format": "int32"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "$ref": "#/definitions/DefinitionSearchResults"
- }
- },
- "400": {
- "description": "Invalid term supplied."
- }
- }
- }
- },
- "/words.json/search/{query}": {
- "get": {
- "tags": [
- "words"
- ],
- "summary": "Searches words",
- "operationId": "searchWords",
- "parameters": [
- {
- "name": "query",
- "in": "path",
- "description": "Search query",
- "required": true,
- "type": "string"
- },
- {
- "name": "caseSensitive",
- "in": "query",
- "description": "Search case sensitive",
- "required": false,
- "type": "string"
- },
- {
- "name": "includePartOfSpeech",
- "in": "query",
- "description": "Only include these comma-delimited parts of speech",
- "required": false,
- "type": "string"
- },
- {
- "name": "excludePartOfSpeech",
- "in": "query",
- "description": "Exclude these comma-delimited parts of speech",
- "required": false,
- "type": "string"
- },
- {
- "name": "minCorpusCount",
- "in": "query",
- "description": "Minimum corpus frequency for terms",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "maxCorpusCount",
- "in": "query",
- "description": "Maximum corpus frequency for terms",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "minDictionaryCount",
- "in": "query",
- "description": "Minimum number of dictionary entries for words returned",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "maxDictionaryCount",
- "in": "query",
- "description": "Maximum dictionary definition count",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "minLength",
- "in": "query",
- "description": "Minimum word length",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "maxLength",
- "in": "query",
- "description": "Maximum word length",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "skip",
- "in": "query",
- "description": "Results to skip",
- "required": false,
- "type": "integer",
- "format": "int32"
- },
- {
- "name": "limit",
- "in": "query",
- "description": "Maximum number of results to return",
- "required": false,
- "type": "integer",
- "format": "int32"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "$ref": "#/definitions/WordSearchResults"
- }
- },
- "400": {
- "description": "Invalid query supplied."
- }
- }
- }
- },
- "/words.json/wordOfTheDay": {
- "get": {
- "tags": [
- "words"
- ],
- "summary": "Returns a specific WordOfTheDay",
- "operationId": "getWordOfTheDay",
- "parameters": [
- {
- "name": "date",
- "in": "query",
- "description": "Fetches by date in yyyy-MM-dd",
- "required": false,
- "type": "string"
- }
- ],
- "responses": {
- "default": {
- "description": "success",
- "schema": {
- "$ref": "#/definitions/WordOfTheDay"
- }
- }
- }
- }
- }
- },
- "definitions": {
- "User": {
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "username": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "status": {
- "type": "integer",
- "format": "int32"
- },
- "faceBookId": {
- "type": "string"
- },
- "userName": {
- "type": "string"
- },
- "displayName": {
- "type": "string"
- },
- "password": {
- "type": "string"
- }
- }
- },
- "Syllable": {
- "properties": {
- "text": {
- "type": "string"
- },
- "seq": {
- "type": "integer",
- "format": "int32"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "AudioType": {
- "properties": {
- "id": {
- "type": "integer",
- "format": "int32"
- },
- "name": {
- "type": "string"
- }
- }
- },
- "WordOfTheDay": {
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "parentId": {
- "type": "string"
- },
- "category": {
- "type": "string"
- },
- "createdBy": {
- "type": "string"
- },
- "createdAt": {
- "type": "string",
- "format": "date-time"
- },
- "contentProvider": {
- "$ref": "#/definitions/ContentProvider"
- },
- "htmlExtra": {
- "type": "string"
- },
- "word": {
- "type": "string"
- },
- "definitions": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/SimpleDefinition"
- }
- },
- "examples": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/SimpleExample"
- }
- },
- "note": {
- "type": "string"
- },
- "publishDate": {
- "type": "string",
- "format": "date-time"
- }
- }
- },
- "Facet": {
- "properties": {
- "facetValues": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/FacetValue"
- }
- },
- "name": {
- "type": "string"
- }
- }
- },
- "WordObject": {
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "word": {
- "type": "string"
- },
- "originalWord": {
- "type": "string"
- },
- "suggestions": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "canonicalForm": {
- "type": "string"
- },
- "vulgar": {
- "type": "string"
- }
- }
- },
- "WordSearchResults": {
- "properties": {
- "searchResults": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/WordSearchResult"
- }
- },
- "totalResults": {
- "type": "integer",
- "format": "int32"
- }
- }
- },
- "AuthenticationToken": {
- "properties": {
- "token": {
- "type": "string"
- },
- "userId": {
- "type": "integer",
- "format": "int64"
- },
- "userSignature": {
- "type": "string"
- }
- }
- },
- "ExampleSearchResults": {
- "properties": {
- "facets": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Facet"
- }
- },
- "examples": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Example"
- }
- }
- }
- },
- "Example": {
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "exampleId": {
- "type": "integer",
- "format": "int64"
- },
- "title": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "score": {
- "$ref": "#/definitions/ScoredWord"
- },
- "sentence": {
- "$ref": "#/definitions/Sentence"
- },
- "word": {
- "type": "string"
- },
- "provider": {
- "$ref": "#/definitions/ContentProvider"
- },
- "year": {
- "type": "integer",
- "format": "int32"
- },
- "rating": {
- "type": "number",
- "format": "float"
- },
- "documentId": {
- "type": "integer",
- "format": "int64"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "SimpleDefinition": {
- "properties": {
- "text": {
- "type": "string"
- },
- "source": {
- "type": "string"
- },
- "note": {
- "type": "string"
- },
- "partOfSpeech": {
- "type": "string"
- }
- }
- },
- "ExampleUsage": {
- "properties": {
- "text": {
- "type": "string"
- }
- }
- },
- "AudioFile": {
- "properties": {
- "attributionUrl": {
- "type": "string"
- },
- "commentCount": {
- "type": "integer",
- "format": "int32"
- },
- "voteCount": {
- "type": "integer",
- "format": "int32"
- },
- "fileUrl": {
- "type": "string"
- },
- "audioType": {
- "type": "string"
- },
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "duration": {
- "type": "number",
- "format": "double"
- },
- "attributionText": {
- "type": "string"
- },
- "createdBy": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "createdAt": {
- "type": "string",
- "format": "date-time"
- },
- "voteWeightedAverage": {
- "type": "number",
- "format": "float"
- },
- "voteAverage": {
- "type": "number",
- "format": "float"
- },
- "word": {
- "type": "string"
- }
- }
- },
- "WordListWord": {
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "word": {
- "type": "string"
- },
- "username": {
- "type": "string"
- },
- "userId": {
- "type": "integer",
- "format": "int64"
- },
- "createdAt": {
- "type": "string",
- "format": "date-time"
- },
- "numberCommentsOnWord": {
- "type": "integer",
- "format": "int64"
- },
- "numberLists": {
- "type": "integer",
- "format": "int64"
- }
- }
- },
- "Bigram": {
- "properties": {
- "count": {
- "type": "integer",
- "format": "int64"
- },
- "gram2": {
- "type": "string"
- },
- "gram1": {
- "type": "string"
- },
- "wlmi": {
- "type": "number",
- "format": "double"
- },
- "mi": {
- "type": "number",
- "format": "double"
- }
- }
- },
- "Frequency": {
- "properties": {
- "count": {
- "type": "integer",
- "format": "int64"
- },
- "year": {
- "type": "integer",
- "format": "int32"
- }
- }
- },
- "TextPron": {
- "properties": {
- "raw": {
- "type": "string"
- },
- "seq": {
- "type": "integer",
- "format": "int32"
- },
- "rawType": {
- "type": "string"
- }
- }
- },
- "ApiTokenStatus": {
- "properties": {
- "valid": {
- "type": "boolean"
- },
- "token": {
- "type": "string"
- },
- "resetsInMillis": {
- "type": "integer",
- "format": "int64"
- },
- "remainingCalls": {
- "type": "integer",
- "format": "int64"
- },
- "expiresInMillis": {
- "type": "integer",
- "format": "int64"
- },
- "totalRequests": {
- "type": "integer",
- "format": "int64"
- }
- }
- },
- "WordList": {
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "permalink": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "createdAt": {
- "type": "string",
- "format": "date-time"
- },
- "updatedAt": {
- "type": "string",
- "format": "date-time"
- },
- "lastActivityAt": {
- "type": "string",
- "format": "date-time"
- },
- "username": {
- "type": "string"
- },
- "userId": {
- "type": "integer",
- "format": "int64"
- },
- "description": {
- "type": "string"
- },
- "numberWordsInList": {
- "type": "integer",
- "format": "int64"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "WordSearchResult": {
- "properties": {
- "count": {
- "type": "integer",
- "format": "int64"
- },
- "lexicality": {
- "type": "number",
- "format": "double"
- },
- "word": {
- "type": "string"
- }
- }
- },
- "DefinitionSearchResults": {
- "properties": {
- "results": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Definition"
- }
- },
- "totalResults": {
- "type": "integer",
- "format": "int32"
- }
- }
- },
- "Note": {
- "properties": {
- "noteType": {
- "type": "string"
- },
- "appliesTo": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "value": {
- "type": "string"
- },
- "pos": {
- "type": "integer",
- "format": "int32"
- }
- }
- },
- "StringValue": {
- "properties": {
- "word": {
- "type": "string"
- }
- }
- },
- "Related": {
- "properties": {
- "label1": {
- "type": "string"
- },
- "relationshipType": {
- "type": "string"
- },
- "label2": {
- "type": "string"
- },
- "label3": {
- "type": "string"
- },
- "words": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "gram": {
- "type": "string"
- },
- "label4": {
- "type": "string"
- }
- }
- },
- "FacetValue": {
- "properties": {
- "count": {
- "type": "integer",
- "format": "int64"
- },
- "value": {
- "type": "string"
- }
- }
- },
- "ScoredWord": {
- "properties": {
- "position": {
- "type": "integer",
- "format": "int32"
- },
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "docTermCount": {
- "type": "integer",
- "format": "int32"
- },
- "lemma": {
- "type": "string"
- },
- "wordType": {
- "type": "string"
- },
- "score": {
- "type": "number",
- "format": "float"
- },
- "sentenceId": {
- "type": "integer",
- "format": "int64"
- },
- "word": {
- "type": "string"
- },
- "stopword": {
- "type": "boolean"
- },
- "baseWordScore": {
- "type": "number",
- "format": "double"
- },
- "partOfSpeech": {
- "type": "string"
- }
- }
- },
- "Citation": {
- "properties": {
- "cite": {
- "type": "string"
- },
- "source": {
- "type": "string"
- }
- }
- },
- "Category": {
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "name": {
- "type": "string"
- }
- }
- },
- "Root": {
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "name": {
- "type": "string"
- },
- "categories": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Category"
- }
- }
- }
- },
- "Sentence": {
- "properties": {
- "hasScoredWords": {
- "type": "boolean"
- },
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "scoredWords": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/ScoredWord"
- }
- },
- "display": {
- "type": "string"
- },
- "rating": {
- "type": "integer",
- "format": "int32"
- },
- "documentMetadataId": {
- "type": "integer",
- "format": "int64"
- }
- }
- },
- "ContentProvider": {
- "properties": {
- "id": {
- "type": "integer",
- "format": "int32"
- },
- "name": {
- "type": "string"
- }
- }
- },
- "Label": {
- "properties": {
- "text": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
- "SimpleExample": {
- "properties": {
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "title": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- }
- },
- "PartOfSpeech": {
- "properties": {
- "roots": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Root"
- }
- },
- "storageAbbr": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "allCategories": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Category"
- }
- }
- }
- },
- "Definition": {
- "properties": {
- "extendedText": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "sourceDictionary": {
- "type": "string"
- },
- "citations": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Citation"
- }
- },
- "labels": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Label"
- }
- },
- "score": {
- "type": "number",
- "format": "float"
- },
- "exampleUses": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/ExampleUsage"
- }
- },
- "attributionUrl": {
- "type": "string"
- },
- "seqString": {
- "type": "string"
- },
- "attributionText": {
- "type": "string"
- },
- "relatedWords": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Related"
- }
- },
- "sequence": {
- "type": "string"
- },
- "word": {
- "type": "string"
- },
- "notes": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Note"
- }
- },
- "textProns": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/TextPron"
- }
- },
- "partOfSpeech": {
- "type": "string"
- }
- }
- },
- "FrequencySummary": {
- "properties": {
- "unknownYearCount": {
- "type": "integer",
- "format": "int32"
- },
- "totalCount": {
- "type": "integer",
- "format": "int64"
- },
- "frequencyString": {
- "type": "string"
- },
- "word": {
- "type": "string"
- },
- "frequency": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Frequency"
- }
- }
- }
- }
- },
- "securityDefinitions": {
- "apiKey": {
- "type": "apiKey",
- "in": "header",
- "name": "api_key"
- }
- }
-}
\ No newline at end of file
diff --git a/modules/openapi-generator/src/test/resources/2_0/wordnik.yaml b/modules/openapi-generator/src/test/resources/2_0/wordnik.yaml
deleted file mode 100644
index ce95ec32539a..000000000000
--- a/modules/openapi-generator/src/test/resources/2_0/wordnik.yaml
+++ /dev/null
@@ -1,1640 +0,0 @@
-swagger: '2.0'
-
-info:
- version: 4.0.1
- title: The Wordnik Public API
- description: "**Wordnik has an API, and you're invited.**\nThe Wordnik API lets you request definitions, example sentences, spelling suggestions, \nrelated words like synonyms and antonyms, phrases containing a given word, word \nautocompletion, random words, words of the day, and much more\n"
- contact:
- url: 'http://developer.wordnik.com/'
- email: apiteam@wordnik.com
- name: Wordnik API Team
-
-schemes:
- - https
-host: api.wordnik.com
-basePath: /v4
-
-securityDefinitions:
- apiKey:
- type: apiKey
- in: header
- name: api_key
-security:
- - apiKey: []
-paths:
- /words.json/randomWord:
- get:
- tags:
- - words
- summary: Returns a single random WordObject
- operationId: getRandomWord
- parameters:
- - name: hasDictionaryDef
- in: query
- description: Only return words with dictionary definitions
- required: false
- type: string
- - name: includePartOfSpeech
- in: query
- description: CSV part-of-speech values to include
- required: false
- type: string
- - name: excludePartOfSpeech
- in: query
- description: CSV part-of-speech values to exclude
- required: false
- type: string
- - name: minCorpusCount
- in: query
- description: Minimum corpus frequency for terms
- required: false
- type: integer
- format: int32
- - name: maxCorpusCount
- in: query
- description: Maximum corpus frequency for terms
- required: false
- type: integer
- format: int32
- - name: minDictionaryCount
- in: query
- description: Minimum dictionary count
- required: false
- type: integer
- format: int32
- - name: maxDictionaryCount
- in: query
- description: Maximum dictionary count
- required: false
- type: integer
- format: int32
- - name: minLength
- in: query
- description: Minimum word length
- required: false
- type: integer
- format: int32
- - name: maxLength
- in: query
- description: Maximum word length
- required: false
- type: integer
- format: int32
- responses:
- '200':
- description: success
- schema:
- $ref: '#/definitions/WordObject'
- '404':
- description: No word found.
- /account.json/user:
- get:
- tags:
- - account
- summary: Returns the logged-in User
- description: Requires a valid auth_token to be set.
- operationId: getLoggedInUser
- parameters:
- - name: auth_token
- in: header
- description: 'The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)'
- required: true
- type: string
- responses:
- '200':
- description: The logged-in user
- schema:
- $ref: '#/definitions/User'
- '403':
- description: Not logged in.
- '404':
- description: User not found.
- '/word.json/{word}/pronunciations':
- get:
- tags:
- - word
- summary: Returns text pronunciations for a given word
- operationId: getTextPronunciations
- parameters:
- - name: word
- in: path
- description: Word to get pronunciations for
- required: true
- type: string
- - name: useCanonical
- in: query
- description: "If true will try to return a correct word root ('cats' -> 'cat'). If false returns exactly what was requested."
- required: false
- type: string
- - name: sourceDictionary
- in: query
- description: Get from a single dictionary
- required: false
- type: string
- - name: typeFormat
- in: query
- description: Text pronunciation type
- required: false
- type: string
- - name: limit
- in: query
- description: Maximum number of results to return
- required: false
- type: integer
- format: int32
- responses:
- '200':
- description: success
- schema:
- type: array
- items:
- $ref: '#/definitions/TextPron'
- '400':
- description: Invalid word supplied.
- '/word.json/{word}/relatedWords':
- get:
- tags:
- - word
- summary: 'Given a word as a string, returns relationships from the Word Graph'
- operationId: getRelatedWords
- parameters:
- - name: word
- in: path
- description: Word to fetch relationships for
- required: true
- type: string
- - name: useCanonical
- in: query
- description: "If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested."
- required: false
- type: string
- - name: relationshipTypes
- in: query
- description: Limits the total results per type of relationship type
- required: false
- type: string
- - name: limitPerRelationshipType
- in: query
- description: Restrict to the supplied relationship types
- required: false
- type: integer
- format: int32
- responses:
- '200':
- description: success
- schema:
- type: array
- items:
- $ref: '#/definitions/Related'
- '400':
- description: Invalid word supplied.
- /words.json/reverseDictionary:
- get:
- tags:
- - words
- summary: Reverse dictionary search
- operationId: reverseDictionary
- parameters:
- - name: query
- in: query
- description: Search term
- required: true
- type: string
- - name: findSenseForWord
- in: query
- description: Restricts words and finds closest sense
- required: false
- type: string
- - name: includeSourceDictionaries
- in: query
- description: Only include these comma-delimited source dictionaries
- required: false
- type: string
- - name: excludeSourceDictionaries
- in: query
- description: Exclude these comma-delimited source dictionaries
- required: false
- type: string
- - name: includePartOfSpeech
- in: query
- description: Only include these comma-delimited parts of speech
- required: false
- type: string
- - name: excludePartOfSpeech
- in: query
- description: Exclude these comma-delimited parts of speech
- required: false
- type: string
- - name: minCorpusCount
- in: query
- description: Minimum corpus frequency for terms
- required: false
- type: integer
- format: int32
- - name: maxCorpusCount
- in: query
- description: Maximum corpus frequency for terms
- required: false
- type: integer
- format: int32
- - name: minLength
- in: query
- description: Minimum word length
- required: false
- type: integer
- format: int32
- - name: maxLength
- in: query
- description: Maximum word length
- required: false
- type: integer
- format: int32
- - name: expandTerms
- in: query
- description: Expand terms
- required: false
- type: string
- - name: includeTags
- in: query
- description: Return a closed set of XML tags in response
- required: false
- type: string
- - name: sortBy
- in: query
- description: Attribute to sort by
- required: false
- type: string
- - name: sortOrder
- in: query
- description: Sort direction
- required: false
- type: string
- - name: skip
- in: query
- description: Results to skip
- required: false
- type: string
- - name: limit
- in: query
- description: Maximum number of results to return
- required: false
- type: integer
- format: int32
- responses:
- '200':
- description: success
- schema:
- $ref: '#/definitions/DefinitionSearchResults'
- '400':
- description: Invalid term supplied.
- /account.json/apiTokenStatus:
- get:
- tags:
- - account
- summary: Returns usage statistics for the API account.
- operationId: getApiTokenStatus
- parameters:
- - name: api_key
- in: header
- description: Wordnik authentication token
- required: false
- type: string
- responses:
- '200':
- description: Usage statistics for the supplied API key
- schema:
- $ref: '#/definitions/ApiTokenStatus'
- '400':
- description: No token supplied.
- '404':
- description: No API account with supplied token.
- '/word.json/{word}':
- get:
- tags:
- - word
- summary: 'Given a word as a string, returns the WordObject that represents it'
- operationId: getWord
- parameters:
- - name: word
- in: path
- description: String value of WordObject to return
- required: true
- type: string
- - name: useCanonical
- in: query
- description: "If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested."
- required: false
- type: string
- - name: includeSuggestions
- in: query
- description: 'Return suggestions (for correct spelling, case variants, etc.)'
- required: false
- type: string
- responses:
- '200':
- description: success
- schema:
- $ref: '#/definitions/WordObject'
- '400':
- description: Invalid word supplied.
- '/wordList.json/{permalink}/deleteWords':
- post:
- tags:
- - wordList
- summary: Removes words from a WordList
- operationId: deleteWordsFromWordList
- parameters:
- - name: permalink
- in: path
- description: permalink of WordList to use
- required: true
- type: string
- - in: body
- name: body
- description: Words to remove from WordList
- required: false
- schema:
- type: array
- items:
- $ref: '#/definitions/StringValue'
- - name: auth_token
- in: header
- description: 'The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)'
- required: true
- type: string
- responses:
- '200':
- description: success
- '400':
- description: Invalid permalink supplied
- '403':
- description: Not Authorized to modify WordList
- '404':
- description: WordList not found
- '/word.json/{word}/examples':
- get:
- tags:
- - word
- summary: Returns examples for a word
- operationId: getExamples
- parameters:
- - name: word
- in: path
- description: Word to return examples for
- required: true
- type: string
- - name: includeDuplicates
- in: query
- description: Show duplicate examples from different sources
- required: false
- type: string
- - name: useCanonical
- in: query
- description: "If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested."
- required: false
- type: string
- - name: skip
- in: query
- description: Results to skip
- required: false
- type: integer
- format: int32
- - name: limit
- in: query
- description: Maximum number of results to return
- required: false
- type: integer
- format: int32
- responses:
- '200':
- description: success
- schema:
- $ref: '#/definitions/ExampleSearchResults'
- '400':
- description: Invalid word supplied.
- '/account.json/authenticate/{username}':
- get:
- tags:
- - account
- summary: Authenticates a User
- operationId: authenticate
- parameters:
- - name: username
- in: path
- description: A confirmed Wordnik username
- required: true
- type: string
- - name: password
- in: query
- description: "The user's password"
- required: true
- type: string
- responses:
- '200':
- description: A valid authentication token
- schema:
- $ref: '#/definitions/AuthenticationToken'
- '403':
- description: Account not available.
- '404':
- description: User not found.
- post:
- tags:
- - account
- summary: Authenticates a user
- operationId: authenticatePost
- parameters:
- - name: username
- in: path
- description: A confirmed Wordnik username
- required: true
- type: string
- - in: body
- name: body
- schema:
- type: string
- description: "The user's password"
- required: true
- responses:
- '200':
- description: A valid authentication token
- schema:
- $ref: '#/definitions/AuthenticationToken'
- '403':
- description: Account not available.
- '404':
- description: User not found.
- '/word.json/{word}/audio':
- get:
- tags:
- - word
- summary: Fetches audio metadata for a word.
- description: The metadata includes a time-expiring fileUrl which allows reading the audio file directly from the API. Currently only audio pronunciations from the American Heritage Dictionary in mp3 format are supported.
- operationId: getAudio
- parameters:
- - name: word
- in: path
- description: Word to get audio for.
- required: true
- type: string
- - name: useCanonical
- in: query
- description: Use the canonical form of the word
- required: false
- type: string
- - name: limit
- in: query
- description: Maximum number of results to return
- required: false
- type: integer
- format: int32
- responses:
- '200':
- description: success
- schema:
- type: array
- items:
- $ref: '#/definitions/AudioFile'
- '400':
- description: Invalid word supplied.
- /words.json/randomWords:
- get:
- tags:
- - words
- summary: Returns an array of random WordObjects
- operationId: getRandomWords
- parameters:
- - name: hasDictionaryDef
- in: query
- description: Only return words with dictionary definitions
- required: false
- type: string
- - name: includePartOfSpeech
- in: query
- description: CSV part-of-speech values to include
- required: false
- type: string
- - name: excludePartOfSpeech
- in: query
- description: CSV part-of-speech values to exclude
- required: false
- type: string
- - name: minCorpusCount
- in: query
- description: Minimum corpus frequency for terms
- required: false
- type: integer
- format: int32
- - name: maxCorpusCount
- in: query
- description: Maximum corpus frequency for terms
- required: false
- type: integer
- format: int32
- - name: minDictionaryCount
- in: query
- description: Minimum dictionary count
- required: false
- type: integer
- format: int32
- - name: maxDictionaryCount
- in: query
- description: Maximum dictionary count
- required: false
- type: integer
- format: int32
- - name: minLength
- in: query
- description: Minimum word length
- required: false
- type: integer
- format: int32
- - name: maxLength
- in: query
- description: Maximum word length
- required: false
- type: integer
- format: int32
- - name: sortBy
- in: query
- description: Attribute to sort by
- required: false
- type: string
- - name: sortOrder
- in: query
- description: Sort direction
- required: false
- type: string
- - name: limit
- in: query
- description: Maximum number of results to return
- required: false
- type: integer
- format: int32
- responses:
- '200':
- description: success
- schema:
- type: array
- items:
- $ref: '#/definitions/WordObject'
- '400':
- description: Invalid term supplied.
- '404':
- description: No results.
- /account.json/wordLists:
- get:
- tags:
- - account
- summary: Fetches WordList objects for the logged-in user.
- operationId: getWordListsForLoggedInUser
- parameters:
- - name: auth_token
- in: header
- description: auth_token of logged-in user
- required: true
- type: string
- - name: skip
- in: query
- description: Results to skip
- required: false
- type: integer
- format: int32
- - name: limit
- in: query
- description: Maximum number of results to return
- required: false
- type: integer
- format: int32
- responses:
- '200':
- description: success
- schema:
- type: array
- items:
- $ref: '#/definitions/WordList'
- '403':
- description: Not authenticated.
- '404':
- description: User account not found.
- '/word.json/{word}/phrases':
- get:
- tags:
- - word
- summary: Fetches bi-gram phrases for a word
- operationId: getPhrases
- parameters:
- - name: word
- in: path
- description: Word to fetch phrases for
- required: true
- type: string
- - name: limit
- in: query
- description: Maximum number of results to return
- required: false
- type: integer
- format: int32
- - name: wlmi
- in: query
- description: Minimum WLMI for the phrase
- required: false
- type: integer
- format: int32
- - name: useCanonical
- in: query
- description: "If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested."
- required: false
- type: string
- responses:
- '200':
- description: success
- schema:
- type: array
- items:
- $ref: '#/definitions/Bigram'
- '400':
- description: Invalid word supplied.
- '/word.json/{word}/frequency':
- get:
- tags:
- - word
- summary: Returns word usage over time
- operationId: getWordFrequency
- parameters:
- - name: word
- in: path
- description: Word to return
- required: true
- type: string
- - name: useCanonical
- in: query
- description: "If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested."
- required: false
- type: string
- - name: startYear
- in: query
- description: Starting Year
- required: false
- type: integer
- format: int32
- - name: endYear
- in: query
- description: Ending Year
- required: false
- type: integer
- format: int32
- responses:
- '200':
- description: success
- schema:
- $ref: '#/definitions/FrequencySummary'
- '400':
- description: Invalid word supplied.
- '404':
- description: No results.
- '/wordList.json/{permalink}/words':
- get:
- tags:
- - wordList
- summary: Fetches words in a WordList
- operationId: getWordListWords
- parameters:
- - name: permalink
- in: path
- description: ID of WordList to use
- required: true
- type: string
- - name: sortBy
- in: query
- description: Field to sort by
- required: false
- type: string
- - name: sortOrder
- in: query
- description: Direction to sort
- required: false
- type: string
- - name: skip
- in: query
- description: Results to skip
- required: false
- type: integer
- format: int32
- - name: limit
- in: query
- description: Maximum number of results to return
- required: false
- type: integer
- format: int32
- - name: auth_token
- in: header
- description: 'The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)'
- required: true
- type: string
- responses:
- '200':
- description: success
- schema:
- type: array
- items:
- $ref: '#/definitions/WordListWord'
- '400':
- description: Invalid ID supplied
- '403':
- description: Not Authorized to access WordList
- '404':
- description: WordList not found
- post:
- tags:
- - wordList
- summary: Adds words to a WordList
- operationId: addWordsToWordList
- parameters:
- - name: permalink
- in: path
- description: permalink of WordList to user
- required: true
- type: string
- - in: body
- name: body
- description: Array of words to add to WordList
- required: false
- schema:
- type: array
- items:
- $ref: '#/definitions/StringValue'
- - name: auth_token
- in: header
- description: 'The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)'
- required: true
- type: string
- responses:
- '200':
- description: success
- '400':
- description: Invalid permalink supplied
- '403':
- description: Not Authorized to access WordList
- '404':
- description: WordList not found
- /wordLists.json:
- post:
- tags:
- - wordLists
- summary: Creates a WordList.
- operationId: createWordList
- parameters:
- - in: body
- name: body
- description: WordList to create
- required: false
- schema:
- $ref: '#/definitions/WordList'
- - name: auth_token
- in: header
- description: 'The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)'
- required: true
- type: string
- responses:
- '200':
- description: success
- schema:
- $ref: '#/definitions/WordList'
- '400':
- description: Invalid WordList supplied or mandatory fields are missing
- '403':
- description: Not authenticated
- '404':
- description: WordList owner not found
- '/word.json/{word}/etymologies':
- get:
- tags:
- - word
- summary: Fetches etymology data
- operationId: getEtymologies
- parameters:
- - name: word
- in: path
- description: Word to return
- required: true
- type: string
- - name: useCanonical
- in: query
- description: "If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested."
- required: false
- type: string
- responses:
- '200':
- description: success
- schema:
- type: array
- items:
- type: string
- '400':
- description: Invalid word supplied.
- '404':
- description: No definitions found.
- '/word.json/{word}/topExample':
- get:
- tags:
- - word
- summary: Returns a top example for a word
- operationId: getTopExample
- parameters:
- - name: word
- in: path
- description: Word to fetch examples for
- required: true
- type: string
- - name: useCanonical
- in: query
- description: "If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested."
- required: false
- type: string
- responses:
- '200':
- description: success
- schema:
- $ref: '#/definitions/Example'
- '400':
- description: Invalid word supplied.
- '/word.json/{word}/definitions':
- get:
- tags:
- - word
- summary: Return definitions for a word
- operationId: getDefinitions
- parameters:
- - name: word
- in: path
- description: Word to return definitions for
- required: true
- type: string
- - name: limit
- in: query
- description: Maximum number of results to return
- required: false
- type: integer
- format: int32
- - name: partOfSpeech
- in: query
- description: CSV list of part-of-speech types
- required: false
- type: string
- - name: includeRelated
- in: query
- description: Return related words with definitions
- required: false
- type: string
- - name: sourceDictionaries
- in: query
- description: "Source dictionary to return definitions from. If 'all' is received, results are returned from all sources. If multiple values are received (e.g. 'century,wiktionary'), results are returned from the first specified dictionary that has definitions. If left blank, results are returned from the first dictionary that has definitions. By default, dictionaries are searched in this order: ahd, wiktionary, webster, century, wordnet"
- required: false
- type: array
- items:
- type: string
- collectionFormat: csv
- - name: useCanonical
- in: query
- description: "If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested."
- required: false
- type: string
- - name: includeTags
- in: query
- description: Return a closed set of XML tags in response
- required: false
- type: string
- responses:
- '200':
- description: success
- schema:
- type: array
- items:
- $ref: '#/definitions/Definition'
- '400':
- description: Invalid word supplied.
- '404':
- description: No definitions found.
- '/words.json/search/{query}':
- get:
- tags:
- - words
- summary: Searches words
- operationId: searchWords
- parameters:
- - name: query
- in: path
- description: Search query
- required: true
- type: string
- - name: caseSensitive
- in: query
- description: Search case sensitive
- required: false
- type: string
- - name: includePartOfSpeech
- in: query
- description: Only include these comma-delimited parts of speech
- required: false
- type: string
- - name: excludePartOfSpeech
- in: query
- description: Exclude these comma-delimited parts of speech
- required: false
- type: string
- - name: minCorpusCount
- in: query
- description: Minimum corpus frequency for terms
- required: false
- type: integer
- format: int32
- - name: maxCorpusCount
- in: query
- description: Maximum corpus frequency for terms
- required: false
- type: integer
- format: int32
- - name: minDictionaryCount
- in: query
- description: Minimum number of dictionary entries for words returned
- required: false
- type: integer
- format: int32
- - name: maxDictionaryCount
- in: query
- description: Maximum dictionary definition count
- required: false
- type: integer
- format: int32
- - name: minLength
- in: query
- description: Minimum word length
- required: false
- type: integer
- format: int32
- - name: maxLength
- in: query
- description: Maximum word length
- required: false
- type: integer
- format: int32
- - name: skip
- in: query
- description: Results to skip
- required: false
- type: integer
- format: int32
- - name: limit
- in: query
- description: Maximum number of results to return
- required: false
- type: integer
- format: int32
- responses:
- '200':
- description: success
- schema:
- $ref: '#/definitions/WordSearchResults'
- '400':
- description: Invalid query supplied.
- '/wordList.json/{permalink}':
- get:
- tags:
- - wordList
- summary: Fetches a WordList by ID
- operationId: getWordListByPermalink
- parameters:
- - name: permalink
- in: path
- description: permalink of WordList to fetch
- required: true
- type: string
- - name: auth_token
- in: header
- description: 'The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)'
- required: true
- type: string
- responses:
- '200':
- description: success
- schema:
- $ref: '#/definitions/WordList'
- '400':
- description: Invalid ID supplied
- '403':
- description: Not Authorized to access WordList
- '404':
- description: WordList not found
- put:
- tags:
- - wordList
- summary: Updates an existing WordList
- operationId: updateWordList
- parameters:
- - name: permalink
- in: path
- description: permalink of WordList to update
- required: true
- type: string
- - in: body
- name: body
- description: Updated WordList
- required: false
- schema:
- $ref: '#/definitions/WordList'
- - name: auth_token
- in: header
- description: 'The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)'
- required: true
- type: string
- responses:
- '200':
- description: success
- '400':
- description: Invalid ID supplied
- '403':
- description: Not Authorized to update WordList
- '404':
- description: WordList not found
- delete:
- tags:
- - wordList
- summary: Deletes an existing WordList
- operationId: deleteWordList
- parameters:
- - name: permalink
- in: path
- description: ID of WordList to delete
- required: true
- type: string
- - name: auth_token
- in: header
- description: 'The auth token of the logged-in user, obtained by calling /account.json/authenticate/{username} (described above)'
- required: true
- type: string
- responses:
- '200':
- description: success
- '400':
- description: Invalid ID supplied
- '403':
- description: Not Authorized to delete WordList
- '404':
- description: WordList not found
- '/word.json/{word}/hyphenation':
- get:
- tags:
- - word
- summary: Returns syllable information for a word
- operationId: getHyphenation
- parameters:
- - name: word
- in: path
- description: Word to get syllables for
- required: true
- type: string
- - name: useCanonical
- in: query
- description: "If true will try to return a correct word root ('cats' -> 'cat'). If false returns exactly what was requested."
- required: false
- type: string
- - name: sourceDictionary
- in: query
- description: 'Get from a single dictionary. Valid options: ahd, century, wiktionary, webster, and wordnet.'
- required: false
- type: string
- - name: limit
- in: query
- description: Maximum number of results to return
- required: false
- type: integer
- format: int32
- responses:
- '200':
- description: success
- schema:
- type: array
- items:
- $ref: '#/definitions/Syllable'
- '400':
- description: Invalid word supplied.
- /words.json/wordOfTheDay:
- get:
- tags:
- - words
- summary: Returns a specific WordOfTheDay
- operationId: getWordOfTheDay
- parameters:
- - name: date
- in: query
- description: Fetches by date in yyyy-MM-dd
- required: false
- type: string
- responses:
- default:
- description: success
- schema:
- $ref: '#/definitions/WordOfTheDay'
-definitions:
- Syllable:
- properties:
- text:
- type: string
- seq:
- type: integer
- format: int32
- type:
- type: string
- StringValue:
- properties:
- word:
- type: string
- AuthenticationToken:
- properties:
- token:
- type: string
- userId:
- type: integer
- format: int64
- userSignature:
- type: string
- Sentence:
- properties:
- hasScoredWords:
- type: boolean
- id:
- type: integer
- format: int64
- scoredWords:
- type: array
- items:
- $ref: '#/definitions/ScoredWord'
- display:
- type: string
- rating:
- type: integer
- format: int32
- documentMetadataId:
- type: integer
- format: int64
- ExampleSearchResults:
- properties:
- facets:
- type: array
- items:
- $ref: '#/definitions/Facet'
- examples:
- type: array
- items:
- $ref: '#/definitions/Example'
- WordSearchResults:
- properties:
- searchResults:
- type: array
- items:
- $ref: '#/definitions/WordSearchResult'
- totalResults:
- type: integer
- format: int32
- SimpleDefinition:
- properties:
- text:
- type: string
- source:
- type: string
- note:
- type: string
- partOfSpeech:
- type: string
- Citation:
- properties:
- cite:
- type: string
- source:
- type: string
- WordList:
- properties:
- numberWordsInList:
- type: integer
- format: int64
- userId:
- type: integer
- format: int64
- name:
- type: string
- permalink:
- type: string
- updatedAt:
- type: string
- format: date-time
- username:
- type: string
- lastActivityAt:
- type: string
- format: date-time
- type:
- type: string
- id:
- type: integer
- format: int64
- createdAt:
- type: string
- format: date-time
- description:
- type: string
- WordObject:
- properties:
- id:
- type: integer
- format: int64
- word:
- type: string
- originalWord:
- type: string
- suggestions:
- type: array
- items:
- type: string
- canonicalForm:
- type: string
- vulgar:
- type: string
- Example:
- properties:
- sentence:
- $ref: '#/definitions/Sentence'
- exampleId:
- type: integer
- format: int64
- word:
- type: string
- text:
- type: string
- url:
- type: string
- provider:
- $ref: '#/definitions/ContentProvider'
- score:
- $ref: '#/definitions/ScoredWord'
- documentId:
- type: integer
- format: int64
- title:
- type: string
- id:
- type: integer
- format: int64
- year:
- type: integer
- format: int32
- rating:
- type: number
- format: float
- ContentProvider:
- properties:
- id:
- type: integer
- format: int32
- name:
- type: string
- FrequencySummary:
- properties:
- unknownYearCount:
- type: integer
- format: int32
- totalCount:
- type: integer
- format: int64
- frequencyString:
- type: string
- word:
- type: string
- frequency:
- type: array
- items:
- $ref: '#/definitions/Frequency'
- Related:
- properties:
- label1:
- type: string
- relationshipType:
- type: string
- label2:
- type: string
- label3:
- type: string
- words:
- type: array
- items:
- type: string
- gram:
- type: string
- label4:
- type: string
- User:
- properties:
- id:
- type: integer
- format: int64
- username:
- type: string
- email:
- type: string
- status:
- type: integer
- format: int32
- faceBookId:
- type: string
- userName:
- type: string
- displayName:
- type: string
- password:
- type: string
- WordOfTheDay:
- properties:
- definitions:
- type: array
- items:
- $ref: '#/definitions/SimpleDefinition'
- htmlExtra:
- type: string
- parentId:
- type: string
- examples:
- type: array
- items:
- $ref: '#/definitions/SimpleExample'
- contentProvider:
- $ref: '#/definitions/ContentProvider'
- word:
- type: string
- note:
- type: string
- id:
- type: integer
- format: int64
- createdAt:
- type: string
- format: date-time
- publishDate:
- type: string
- format: date-time
- category:
- type: string
- createdBy:
- type: string
- TextPron:
- properties:
- raw:
- type: string
- seq:
- type: integer
- format: int32
- rawType:
- type: string
- WordSearchResult:
- properties:
- count:
- type: integer
- format: int64
- lexicality:
- type: number
- format: double
- word:
- type: string
- ApiTokenStatus:
- properties:
- valid:
- type: boolean
- token:
- type: string
- resetsInMillis:
- type: integer
- format: int64
- remainingCalls:
- type: integer
- format: int64
- expiresInMillis:
- type: integer
- format: int64
- totalRequests:
- type: integer
- format: int64
- Note:
- properties:
- noteType:
- type: string
- appliesTo:
- type: array
- items:
- type: string
- value:
- type: string
- pos:
- type: integer
- format: int32
- WordListWord:
- properties:
- id:
- type: integer
- format: int64
- word:
- type: string
- username:
- type: string
- userId:
- type: integer
- format: int64
- createdAt:
- type: string
- format: date-time
- numberCommentsOnWord:
- type: integer
- format: int64
- numberLists:
- type: integer
- format: int64
- AudioFile:
- properties:
- voteCount:
- type: integer
- format: int32
- word:
- type: string
- attributionText:
- type: string
- audioType:
- type: string
- attributionUrl:
- type: string
- commentCount:
- type: integer
- format: int32
- fileUrl:
- type: string
- voteAverage:
- type: number
- format: float
- duration:
- type: number
- format: double
- id:
- type: integer
- format: int64
- createdAt:
- type: string
- format: date-time
- voteWeightedAverage:
- type: number
- format: float
- description:
- type: string
- createdBy:
- type: string
- Definition:
- properties:
- notes:
- type: array
- items:
- $ref: '#/definitions/Note'
- sequence:
- type: string
- textProns:
- type: array
- items:
- $ref: '#/definitions/TextPron'
- extendedText:
- type: string
- word:
- type: string
- attributionText:
- type: string
- citations:
- type: array
- items:
- $ref: '#/definitions/Citation'
- partOfSpeech:
- type: string
- text:
- type: string
- attributionUrl:
- type: string
- seqString:
- type: string
- sourceDictionary:
- type: string
- score:
- type: number
- format: float
- exampleUses:
- type: array
- items:
- $ref: '#/definitions/ExampleUsage'
- relatedWords:
- type: array
- items:
- $ref: '#/definitions/Related'
- labels:
- type: array
- items:
- $ref: '#/definitions/Label'
- Label:
- properties:
- text:
- type: string
- type:
- type: string
- Facet:
- properties:
- facetValues:
- type: array
- items:
- $ref: '#/definitions/FacetValue'
- name:
- type: string
- ExampleUsage:
- properties:
- text:
- type: string
- SimpleExample:
- properties:
- id:
- type: integer
- format: int64
- title:
- type: string
- text:
- type: string
- url:
- type: string
- FacetValue:
- properties:
- count:
- type: integer
- format: int64
- value:
- type: string
- DefinitionSearchResults:
- properties:
- results:
- type: array
- items:
- $ref: '#/definitions/Definition'
- totalResults:
- type: integer
- format: int32
- Frequency:
- properties:
- count:
- type: integer
- format: int64
- year:
- type: integer
- format: int32
- ScoredWord:
- properties:
- wordType:
- type: string
- lemma:
- type: string
- position:
- type: integer
- format: int32
- word:
- type: string
- docTermCount:
- type: integer
- format: int32
- stopword:
- type: boolean
- partOfSpeech:
- type: string
- score:
- type: number
- format: float
- baseWordScore:
- type: number
- format: double
- id:
- type: integer
- format: int64
- sentenceId:
- type: integer
- format: int64
- Bigram:
- properties:
- count:
- type: integer
- format: int64
- gram2:
- type: string
- gram1:
- type: string
- wlmi:
- type: number
- format: double
- mi:
- type: number
- format: double
diff --git a/modules/openapi-generator/src/test/resources/3_0/jetbrains/ManagementService-v3.json b/modules/openapi-generator/src/test/resources/3_0/jetbrains/ManagementService-v3.json
index 74b530588bdb..6353bfe45d37 100644
--- a/modules/openapi-generator/src/test/resources/3_0/jetbrains/ManagementService-v3.json
+++ b/modules/openapi-generator/src/test/resources/3_0/jetbrains/ManagementService-v3.json
@@ -16028,7 +16028,8 @@
},
"password" : {
"description" : "The password for the API credential that was created.",
- "type" : "string"
+ "type" : "string",
+ "format" : "password"
},
"roles" : {
"description" : "List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential.",
@@ -16134,7 +16135,8 @@
},
"password" : {
"description" : "The password for the API credential that was created.",
- "type" : "string"
+ "type" : "string",
+ "format" : "password"
},
"roles" : {
"description" : "List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential.",
@@ -16355,7 +16357,8 @@
},
"password" : {
"description" : "Password to access the webhook URL.",
- "type" : "string"
+ "type" : "string",
+ "format" : "password"
},
"populateSoapActionHeader" : {
"description" : "Indicates if the SOAP action header needs to be populated. Default value: **false**.\n\nOnly applies if `communicationFormat`: **soap**.",
@@ -16584,7 +16587,8 @@
},
"password" : {
"description" : "Password to access the webhook URL.",
- "type" : "string"
+ "type" : "string",
+ "format" : "password"
},
"populateSoapActionHeader" : {
"description" : "Indicates if the SOAP action header needs to be populated. Default value: **false**.\n\nOnly applies if `communicationFormat`: **soap**.",
@@ -20193,7 +20197,8 @@
},
"password" : {
"description" : "Password to access the webhook URL.",
- "type" : "string"
+ "type" : "string",
+ "format" : "password"
},
"populateSoapActionHeader" : {
"description" : "Indicates if the SOAP action header needs to be populated. Default value: **false**.\n\nOnly applies if `communicationFormat`: **soap**.",
@@ -20333,7 +20338,8 @@
},
"password" : {
"description" : "Password to access the webhook URL.",
- "type" : "string"
+ "type" : "string",
+ "format" : "password"
},
"populateSoapActionHeader" : {
"description" : "Indicates if the SOAP action header needs to be populated. Default value: **false**.\n\nOnly applies if `communicationFormat`: **soap**.",
@@ -20665,7 +20671,8 @@
},
"password" : {
"description" : "The password for authentication of the notifications.",
- "type" : "string"
+ "type" : "string",
+ "format" : "password"
},
"url" : {
"description" : "The URL in the format: http(s)://domain.com.",
diff --git a/modules/openapi-generator/src/test/resources/3_0/jetbrains/MgmtApi.json b/modules/openapi-generator/src/test/resources/3_0/jetbrains/MgmtApi.json
index 3b8a3c9e03fa..d642880efa3e 100644
--- a/modules/openapi-generator/src/test/resources/3_0/jetbrains/MgmtApi.json
+++ b/modules/openapi-generator/src/test/resources/3_0/jetbrains/MgmtApi.json
@@ -16118,7 +16118,8 @@
},
"password" : {
"description" : "The password for the API credential that was created.",
- "type" : "string"
+ "type" : "string",
+ "format" : "password"
},
"roles" : {
"description" : "List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential.",
@@ -16224,7 +16225,8 @@
},
"password" : {
"description" : "The password for the API credential that was created.",
- "type" : "string"
+ "type" : "string",
+ "format" : "password"
},
"roles" : {
"description" : "List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential.",
@@ -16445,7 +16447,8 @@
},
"password" : {
"description" : "Password to access the webhook URL.",
- "type" : "string"
+ "type" : "string",
+ "format" : "password"
},
"populateSoapActionHeader" : {
"description" : "Indicates if the SOAP action header needs to be populated. Default value: **false**.\n\nOnly applies if `communicationFormat`: **soap**.",
@@ -16674,7 +16677,8 @@
},
"password" : {
"description" : "Password to access the webhook URL.",
- "type" : "string"
+ "type" : "string",
+ "format" : "password"
},
"populateSoapActionHeader" : {
"description" : "Indicates if the SOAP action header needs to be populated. Default value: **false**.\n\nOnly applies if `communicationFormat`: **soap**.",
@@ -20184,7 +20188,8 @@
},
"password" : {
"description" : "Password to access the webhook URL.",
- "type" : "string"
+ "type" : "string",
+ "format" : "password"
},
"populateSoapActionHeader" : {
"description" : "Indicates if the SOAP action header needs to be populated. Default value: **false**.\n\nOnly applies if `communicationFormat`: **soap**.",
@@ -20324,7 +20329,8 @@
},
"password" : {
"description" : "Password to access the webhook URL.",
- "type" : "string"
+ "type" : "string",
+ "format" : "password"
},
"populateSoapActionHeader" : {
"description" : "Indicates if the SOAP action header needs to be populated. Default value: **false**.\n\nOnly applies if `communicationFormat`: **soap**.",
@@ -20645,7 +20651,8 @@
},
"password" : {
"description" : "The password for authentication of the notifications.",
- "type" : "string"
+ "type" : "string",
+ "format" : "password"
},
"url" : {
"description" : "The URL in the format: http(s)://domain.com.",
diff --git a/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml b/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
index e4957b4e19d1..e87fe0cb55b8 100644
--- a/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
+++ b/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
@@ -471,6 +471,7 @@ paths:
required: true
schema:
type: string
+ format: password
responses:
'200':
description: successful operation
@@ -1449,6 +1450,7 @@ components:
type: string
password:
type: string
+ format: password
phone:
type: string
userStatus:
diff --git a/modules/openapi-generator/src/test/resources/3_0/snakecase-discriminator.yaml b/modules/openapi-generator/src/test/resources/3_0/snakecase-discriminator.yaml
index cc4f62fa3972..68d1acf558f0 100644
--- a/modules/openapi-generator/src/test/resources/3_0/snakecase-discriminator.yaml
+++ b/modules/openapi-generator/src/test/resources/3_0/snakecase-discriminator.yaml
@@ -471,6 +471,7 @@ paths:
required: true
schema:
type: string
+ format: password
responses:
"200":
description: successful operation
diff --git a/modules/openapi-generator/src/test/resources/petstore.json b/modules/openapi-generator/src/test/resources/petstore.json
index ad5523181b6a..1f159bffac96 100644
--- a/modules/openapi-generator/src/test/resources/petstore.json
+++ b/modules/openapi-generator/src/test/resources/petstore.json
@@ -652,7 +652,8 @@
"in": "query",
"description": "The password for login in clear text",
"required": false,
- "type": "string"
+ "type": "string",
+ "format": "password"
}
],
"responses": {
@@ -840,7 +841,8 @@
"type": "string"
},
"password": {
- "type": "string"
+ "type": "string",
+ "format": "password"
},
"phone": {
"type": "string"
diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/User.java
index 4ec14b22a173..b1d391dca84b 100644
--- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/model/User.java
@@ -216,7 +216,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/User.java
index 4ec14b22a173..b1d391dca84b 100644
--- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/model/User.java
@@ -216,7 +216,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/User.java
index 4ec14b22a173..b1d391dca84b 100644
--- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/model/User.java
@@ -216,7 +216,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/User.java
index 4ec14b22a173..b1d391dca84b 100644
--- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/model/User.java
@@ -216,7 +216,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/client/petstore/java/apache-httpclient-jackson3/api/openapi.yaml b/samples/client/petstore/java/apache-httpclient-jackson3/api/openapi.yaml
index 9a74972a7401..fafd8a0c6db1 100644
--- a/samples/client/petstore/java/apache-httpclient-jackson3/api/openapi.yaml
+++ b/samples/client/petstore/java/apache-httpclient-jackson3/api/openapi.yaml
@@ -532,6 +532,7 @@ paths:
name: password
required: true
schema:
+ format: password
type: string
style: form
responses:
@@ -1508,6 +1509,7 @@ components:
email:
type: string
password:
+ format: password
type: string
phone:
type: string
diff --git a/samples/client/petstore/java/apache-httpclient-jackson3/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/apache-httpclient-jackson3/src/main/java/org/openapitools/client/model/User.java
index 1882d8052c13..828d7cda50f7 100644
--- a/samples/client/petstore/java/apache-httpclient-jackson3/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java/apache-httpclient-jackson3/src/main/java/org/openapitools/client/model/User.java
@@ -309,7 +309,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/client/petstore/java/apache-httpclient/api/openapi.yaml b/samples/client/petstore/java/apache-httpclient/api/openapi.yaml
index 9a74972a7401..fafd8a0c6db1 100644
--- a/samples/client/petstore/java/apache-httpclient/api/openapi.yaml
+++ b/samples/client/petstore/java/apache-httpclient/api/openapi.yaml
@@ -532,6 +532,7 @@ paths:
name: password
required: true
schema:
+ format: password
type: string
style: form
responses:
@@ -1508,6 +1509,7 @@ components:
email:
type: string
password:
+ format: password
type: string
phone:
type: string
diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/User.java
index fcbd0b0ca426..61848dc19405 100644
--- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/User.java
@@ -310,7 +310,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/client/petstore/java/feign-hc5/api/openapi.yaml b/samples/client/petstore/java/feign-hc5/api/openapi.yaml
index 9a74972a7401..fafd8a0c6db1 100644
--- a/samples/client/petstore/java/feign-hc5/api/openapi.yaml
+++ b/samples/client/petstore/java/feign-hc5/api/openapi.yaml
@@ -532,6 +532,7 @@ paths:
name: password
required: true
schema:
+ format: password
type: string
style: form
responses:
@@ -1508,6 +1509,7 @@ components:
email:
type: string
password:
+ format: password
type: string
phone:
type: string
diff --git a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/User.java
index 2ed4cf183103..3194dbdf0263 100644
--- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/model/User.java
@@ -314,7 +314,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/client/petstore/java/feign/api/openapi.yaml b/samples/client/petstore/java/feign/api/openapi.yaml
index 9a74972a7401..fafd8a0c6db1 100644
--- a/samples/client/petstore/java/feign/api/openapi.yaml
+++ b/samples/client/petstore/java/feign/api/openapi.yaml
@@ -532,6 +532,7 @@ paths:
name: password
required: true
schema:
+ format: password
type: string
style: form
responses:
@@ -1508,6 +1509,7 @@ components:
email:
type: string
password:
+ format: password
type: string
phone:
type: string
diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/User.java
index 2ed4cf183103..3194dbdf0263 100644
--- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/User.java
@@ -314,7 +314,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/User.java
index 72950a8e4316..5c8833f847dd 100644
--- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/model/User.java
@@ -290,7 +290,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/User.java
index 318cdc4f6fae..2f89381adcf4 100644
--- a/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/model/User.java
@@ -259,7 +259,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/User.java
index 2efd9f6bcc8a..f076a5733a16 100644
--- a/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/model/User.java
@@ -256,7 +256,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/client/petstore/java/restclient-swagger2/api/openapi.yaml b/samples/client/petstore/java/restclient-swagger2/api/openapi.yaml
index 9a74972a7401..fafd8a0c6db1 100644
--- a/samples/client/petstore/java/restclient-swagger2/api/openapi.yaml
+++ b/samples/client/petstore/java/restclient-swagger2/api/openapi.yaml
@@ -532,6 +532,7 @@ paths:
name: password
required: true
schema:
+ format: password
type: string
style: form
responses:
@@ -1508,6 +1509,7 @@ components:
email:
type: string
password:
+ format: password
type: string
phone:
type: string
diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/User.java
index 8d8e626a831f..583a5b767abf 100644
--- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/User.java
@@ -317,7 +317,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/api/openapi.yaml b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/api/openapi.yaml
index 9a74972a7401..fafd8a0c6db1 100644
--- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/api/openapi.yaml
+++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/api/openapi.yaml
@@ -532,6 +532,7 @@ paths:
name: password
required: true
schema:
+ format: password
type: string
style: form
responses:
@@ -1508,6 +1509,7 @@ components:
email:
type: string
password:
+ format: password
type: string
phone:
type: string
diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/User.java
index b27f851fd015..dcfcf4d0d985 100644
--- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/User.java
@@ -308,7 +308,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/api/openapi.yaml b/samples/client/petstore/java/restclient-useSingleRequestParameter/api/openapi.yaml
index 9a74972a7401..fafd8a0c6db1 100644
--- a/samples/client/petstore/java/restclient-useSingleRequestParameter/api/openapi.yaml
+++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/api/openapi.yaml
@@ -532,6 +532,7 @@ paths:
name: password
required: true
schema:
+ format: password
type: string
style: form
responses:
@@ -1508,6 +1509,7 @@ components:
email:
type: string
password:
+ format: password
type: string
phone:
type: string
diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java
index b27f851fd015..dcfcf4d0d985 100644
--- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java
@@ -308,7 +308,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/client/petstore/java/restclient/api/openapi.yaml b/samples/client/petstore/java/restclient/api/openapi.yaml
index 9a74972a7401..fafd8a0c6db1 100644
--- a/samples/client/petstore/java/restclient/api/openapi.yaml
+++ b/samples/client/petstore/java/restclient/api/openapi.yaml
@@ -532,6 +532,7 @@ paths:
name: password
required: true
schema:
+ format: password
type: string
style: form
responses:
@@ -1508,6 +1509,7 @@ components:
email:
type: string
password:
+ format: password
type: string
phone:
type: string
diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/User.java
index b27f851fd015..dcfcf4d0d985 100644
--- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/User.java
@@ -308,7 +308,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/client/petstore/java/resteasy/api/openapi.yaml b/samples/client/petstore/java/resteasy/api/openapi.yaml
index 9a74972a7401..fafd8a0c6db1 100644
--- a/samples/client/petstore/java/resteasy/api/openapi.yaml
+++ b/samples/client/petstore/java/resteasy/api/openapi.yaml
@@ -532,6 +532,7 @@ paths:
name: password
required: true
schema:
+ format: password
type: string
style: form
responses:
@@ -1508,6 +1509,7 @@ components:
email:
type: string
password:
+ format: password
type: string
phone:
type: string
diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/User.java
index a06c65406afa..35155ba7eb76 100644
--- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/User.java
@@ -307,7 +307,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/client/petstore/java/resttemplate-withXml/api/openapi.yaml b/samples/client/petstore/java/resttemplate-withXml/api/openapi.yaml
index 9a74972a7401..fafd8a0c6db1 100644
--- a/samples/client/petstore/java/resttemplate-withXml/api/openapi.yaml
+++ b/samples/client/petstore/java/resttemplate-withXml/api/openapi.yaml
@@ -532,6 +532,7 @@ paths:
name: password
required: true
schema:
+ format: password
type: string
style: form
responses:
@@ -1508,6 +1509,7 @@ components:
email:
type: string
password:
+ format: password
type: string
phone:
type: string
diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/User.java
index 26756a4be846..6b19c6e930ab 100644
--- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/User.java
@@ -339,7 +339,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/client/petstore/java/resttemplate/api/openapi.yaml b/samples/client/petstore/java/resttemplate/api/openapi.yaml
index 9a74972a7401..fafd8a0c6db1 100644
--- a/samples/client/petstore/java/resttemplate/api/openapi.yaml
+++ b/samples/client/petstore/java/resttemplate/api/openapi.yaml
@@ -532,6 +532,7 @@ paths:
name: password
required: true
schema:
+ format: password
type: string
style: form
responses:
@@ -1508,6 +1509,7 @@ components:
email:
type: string
password:
+ format: password
type: string
phone:
type: string
diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/User.java
index 41846ea56d4c..3d6f6bbe152d 100644
--- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/User.java
@@ -322,7 +322,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/client/petstore/java/vertx-supportVertxFuture/api/openapi.yaml b/samples/client/petstore/java/vertx-supportVertxFuture/api/openapi.yaml
index 9a74972a7401..fafd8a0c6db1 100644
--- a/samples/client/petstore/java/vertx-supportVertxFuture/api/openapi.yaml
+++ b/samples/client/petstore/java/vertx-supportVertxFuture/api/openapi.yaml
@@ -532,6 +532,7 @@ paths:
name: password
required: true
schema:
+ format: password
type: string
style: form
responses:
@@ -1508,6 +1509,7 @@ components:
email:
type: string
password:
+ format: password
type: string
phone:
type: string
diff --git a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/User.java
index a06c65406afa..35155ba7eb76 100644
--- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/model/User.java
@@ -307,7 +307,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/client/petstore/java/vertx/api/openapi.yaml b/samples/client/petstore/java/vertx/api/openapi.yaml
index 9a74972a7401..fafd8a0c6db1 100644
--- a/samples/client/petstore/java/vertx/api/openapi.yaml
+++ b/samples/client/petstore/java/vertx/api/openapi.yaml
@@ -532,6 +532,7 @@ paths:
name: password
required: true
schema:
+ format: password
type: string
style: form
responses:
@@ -1508,6 +1509,7 @@ components:
email:
type: string
password:
+ format: password
type: string
phone:
type: string
diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/User.java
index a06c65406afa..35155ba7eb76 100644
--- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/User.java
@@ -307,7 +307,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/client/petstore/java/vertx5-supportVertxFuture/api/openapi.yaml b/samples/client/petstore/java/vertx5-supportVertxFuture/api/openapi.yaml
index 9a74972a7401..fafd8a0c6db1 100644
--- a/samples/client/petstore/java/vertx5-supportVertxFuture/api/openapi.yaml
+++ b/samples/client/petstore/java/vertx5-supportVertxFuture/api/openapi.yaml
@@ -532,6 +532,7 @@ paths:
name: password
required: true
schema:
+ format: password
type: string
style: form
responses:
@@ -1508,6 +1509,7 @@ components:
email:
type: string
password:
+ format: password
type: string
phone:
type: string
diff --git a/samples/client/petstore/java/vertx5-supportVertxFuture/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/vertx5-supportVertxFuture/src/main/java/org/openapitools/client/model/User.java
index a06c65406afa..35155ba7eb76 100644
--- a/samples/client/petstore/java/vertx5-supportVertxFuture/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java/vertx5-supportVertxFuture/src/main/java/org/openapitools/client/model/User.java
@@ -307,7 +307,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/client/petstore/java/vertx5/api/openapi.yaml b/samples/client/petstore/java/vertx5/api/openapi.yaml
index 9a74972a7401..fafd8a0c6db1 100644
--- a/samples/client/petstore/java/vertx5/api/openapi.yaml
+++ b/samples/client/petstore/java/vertx5/api/openapi.yaml
@@ -532,6 +532,7 @@ paths:
name: password
required: true
schema:
+ format: password
type: string
style: form
responses:
@@ -1508,6 +1509,7 @@ components:
email:
type: string
password:
+ format: password
type: string
phone:
type: string
diff --git a/samples/client/petstore/java/vertx5/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/vertx5/src/main/java/org/openapitools/client/model/User.java
index a06c65406afa..35155ba7eb76 100644
--- a/samples/client/petstore/java/vertx5/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java/vertx5/src/main/java/org/openapitools/client/model/User.java
@@ -307,7 +307,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/client/petstore/java/webclient-jakarta/api/openapi.yaml b/samples/client/petstore/java/webclient-jakarta/api/openapi.yaml
index 9a74972a7401..fafd8a0c6db1 100644
--- a/samples/client/petstore/java/webclient-jakarta/api/openapi.yaml
+++ b/samples/client/petstore/java/webclient-jakarta/api/openapi.yaml
@@ -532,6 +532,7 @@ paths:
name: password
required: true
schema:
+ format: password
type: string
style: form
responses:
@@ -1508,6 +1509,7 @@ components:
email:
type: string
password:
+ format: password
type: string
phone:
type: string
diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/User.java
index 9dea5313e6f1..475722e85e5a 100644
--- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/User.java
@@ -307,7 +307,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/client/petstore/java/webclient-swagger2/api/openapi.yaml b/samples/client/petstore/java/webclient-swagger2/api/openapi.yaml
index 9a74972a7401..fafd8a0c6db1 100644
--- a/samples/client/petstore/java/webclient-swagger2/api/openapi.yaml
+++ b/samples/client/petstore/java/webclient-swagger2/api/openapi.yaml
@@ -532,6 +532,7 @@ paths:
name: password
required: true
schema:
+ format: password
type: string
style: form
responses:
@@ -1508,6 +1509,7 @@ components:
email:
type: string
password:
+ format: password
type: string
phone:
type: string
diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/User.java
index ef14ff2796e5..4439029e6890 100644
--- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/User.java
@@ -316,7 +316,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/api/openapi.yaml b/samples/client/petstore/java/webclient-useSingleRequestParameter/api/openapi.yaml
index 9a74972a7401..fafd8a0c6db1 100644
--- a/samples/client/petstore/java/webclient-useSingleRequestParameter/api/openapi.yaml
+++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/api/openapi.yaml
@@ -532,6 +532,7 @@ paths:
name: password
required: true
schema:
+ format: password
type: string
style: form
responses:
@@ -1508,6 +1509,7 @@ components:
email:
type: string
password:
+ format: password
type: string
phone:
type: string
diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java
index a06c65406afa..35155ba7eb76 100644
--- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/User.java
@@ -307,7 +307,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/client/petstore/java/webclient/api/openapi.yaml b/samples/client/petstore/java/webclient/api/openapi.yaml
index 9a74972a7401..fafd8a0c6db1 100644
--- a/samples/client/petstore/java/webclient/api/openapi.yaml
+++ b/samples/client/petstore/java/webclient/api/openapi.yaml
@@ -532,6 +532,7 @@ paths:
name: password
required: true
schema:
+ format: password
type: string
style: form
responses:
@@ -1508,6 +1509,7 @@ components:
email:
type: string
password:
+ format: password
type: string
phone:
type: string
diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/User.java
index a06c65406afa..35155ba7eb76 100644
--- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/User.java
+++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/User.java
@@ -307,7 +307,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/openapi3/client/petstore/typescript/builds/explode-query/apis/UserApi.ts b/samples/openapi3/client/petstore/typescript/builds/explode-query/apis/UserApi.ts
index 3564b7982f42..5bcce61cfe8a 100644
--- a/samples/openapi3/client/petstore/typescript/builds/explode-query/apis/UserApi.ts
+++ b/samples/openapi3/client/petstore/typescript/builds/explode-query/apis/UserApi.ts
@@ -242,7 +242,7 @@ export class UserApiRequestFactory extends BaseAPIRequestFactory {
// Query Params
if (password !== undefined) {
- requestContext.setQueryParam("password", ObjectSerializer.serialize(password, "string", ""));
+ requestContext.setQueryParam("password", ObjectSerializer.serialize(password, "string", "password"));
}
diff --git a/samples/server/petstore/java-helidon-server/v3/mp/src/main/java/org/openapitools/server/model/User.java b/samples/server/petstore/java-helidon-server/v3/mp/src/main/java/org/openapitools/server/model/User.java
index 090d2c243952..f4604454cd65 100644
--- a/samples/server/petstore/java-helidon-server/v3/mp/src/main/java/org/openapitools/server/model/User.java
+++ b/samples/server/petstore/java-helidon-server/v3/mp/src/main/java/org/openapitools/server/model/User.java
@@ -216,7 +216,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/server/petstore/java-helidon-server/v3/mp/src/main/resources/META-INF/openapi.yml b/samples/server/petstore/java-helidon-server/v3/mp/src/main/resources/META-INF/openapi.yml
index e119dd1b876a..fa0dd0297aed 100644
--- a/samples/server/petstore/java-helidon-server/v3/mp/src/main/resources/META-INF/openapi.yml
+++ b/samples/server/petstore/java-helidon-server/v3/mp/src/main/resources/META-INF/openapi.yml
@@ -532,6 +532,7 @@ paths:
name: password
required: true
schema:
+ format: password
type: string
style: form
responses:
@@ -1508,6 +1509,7 @@ components:
email:
type: string
password:
+ format: password
type: string
phone:
type: string
diff --git a/samples/server/petstore/java-helidon-server/v3/se/src/main/java/org/openapitools/server/model/User.java b/samples/server/petstore/java-helidon-server/v3/se/src/main/java/org/openapitools/server/model/User.java
index 5d1164c694e9..562cff976d74 100644
--- a/samples/server/petstore/java-helidon-server/v3/se/src/main/java/org/openapitools/server/model/User.java
+++ b/samples/server/petstore/java-helidon-server/v3/se/src/main/java/org/openapitools/server/model/User.java
@@ -166,7 +166,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/server/petstore/java-helidon-server/v3/se/src/main/resources/META-INF/openapi.yml b/samples/server/petstore/java-helidon-server/v3/se/src/main/resources/META-INF/openapi.yml
index e119dd1b876a..fa0dd0297aed 100644
--- a/samples/server/petstore/java-helidon-server/v3/se/src/main/resources/META-INF/openapi.yml
+++ b/samples/server/petstore/java-helidon-server/v3/se/src/main/resources/META-INF/openapi.yml
@@ -532,6 +532,7 @@ paths:
name: password
required: true
schema:
+ format: password
type: string
style: form
responses:
@@ -1508,6 +1509,7 @@ components:
email:
type: string
password:
+ format: password
type: string
phone:
type: string
diff --git a/samples/server/petstore/java-helidon-server/v4/mp/src/main/java/org/openapitools/server/model/User.java b/samples/server/petstore/java-helidon-server/v4/mp/src/main/java/org/openapitools/server/model/User.java
index 090d2c243952..f4604454cd65 100644
--- a/samples/server/petstore/java-helidon-server/v4/mp/src/main/java/org/openapitools/server/model/User.java
+++ b/samples/server/petstore/java-helidon-server/v4/mp/src/main/java/org/openapitools/server/model/User.java
@@ -216,7 +216,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/server/petstore/java-helidon-server/v4/mp/src/main/resources/META-INF/openapi.yml b/samples/server/petstore/java-helidon-server/v4/mp/src/main/resources/META-INF/openapi.yml
index e119dd1b876a..fa0dd0297aed 100644
--- a/samples/server/petstore/java-helidon-server/v4/mp/src/main/resources/META-INF/openapi.yml
+++ b/samples/server/petstore/java-helidon-server/v4/mp/src/main/resources/META-INF/openapi.yml
@@ -532,6 +532,7 @@ paths:
name: password
required: true
schema:
+ format: password
type: string
style: form
responses:
@@ -1508,6 +1509,7 @@ components:
email:
type: string
password:
+ format: password
type: string
phone:
type: string
diff --git a/samples/server/petstore/java-helidon-server/v4/se-uac-group-by-file-path/src/main/java/org/openapitools/server/model/User.java b/samples/server/petstore/java-helidon-server/v4/se-uac-group-by-file-path/src/main/java/org/openapitools/server/model/User.java
index 5d1164c694e9..562cff976d74 100644
--- a/samples/server/petstore/java-helidon-server/v4/se-uac-group-by-file-path/src/main/java/org/openapitools/server/model/User.java
+++ b/samples/server/petstore/java-helidon-server/v4/se-uac-group-by-file-path/src/main/java/org/openapitools/server/model/User.java
@@ -166,7 +166,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/server/petstore/java-helidon-server/v4/se-uac-group-by-file-path/src/main/resources/META-INF/openapi.yml b/samples/server/petstore/java-helidon-server/v4/se-uac-group-by-file-path/src/main/resources/META-INF/openapi.yml
index e119dd1b876a..fa0dd0297aed 100644
--- a/samples/server/petstore/java-helidon-server/v4/se-uac-group-by-file-path/src/main/resources/META-INF/openapi.yml
+++ b/samples/server/petstore/java-helidon-server/v4/se-uac-group-by-file-path/src/main/resources/META-INF/openapi.yml
@@ -532,6 +532,7 @@ paths:
name: password
required: true
schema:
+ format: password
type: string
style: form
responses:
@@ -1508,6 +1509,7 @@ components:
email:
type: string
password:
+ format: password
type: string
phone:
type: string
diff --git a/samples/server/petstore/java-helidon-server/v4/se-uac/src/main/java/org/openapitools/server/model/User.java b/samples/server/petstore/java-helidon-server/v4/se-uac/src/main/java/org/openapitools/server/model/User.java
index 5d1164c694e9..562cff976d74 100644
--- a/samples/server/petstore/java-helidon-server/v4/se-uac/src/main/java/org/openapitools/server/model/User.java
+++ b/samples/server/petstore/java-helidon-server/v4/se-uac/src/main/java/org/openapitools/server/model/User.java
@@ -166,7 +166,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/server/petstore/java-helidon-server/v4/se-uac/src/main/resources/META-INF/openapi.yml b/samples/server/petstore/java-helidon-server/v4/se-uac/src/main/resources/META-INF/openapi.yml
index e119dd1b876a..fa0dd0297aed 100644
--- a/samples/server/petstore/java-helidon-server/v4/se-uac/src/main/resources/META-INF/openapi.yml
+++ b/samples/server/petstore/java-helidon-server/v4/se-uac/src/main/resources/META-INF/openapi.yml
@@ -532,6 +532,7 @@ paths:
name: password
required: true
schema:
+ format: password
type: string
style: form
responses:
@@ -1508,6 +1509,7 @@ components:
email:
type: string
password:
+ format: password
type: string
phone:
type: string
diff --git a/samples/server/petstore/java-helidon-server/v4/se/src/main/java/org/openapitools/server/model/User.java b/samples/server/petstore/java-helidon-server/v4/se/src/main/java/org/openapitools/server/model/User.java
index 5d1164c694e9..562cff976d74 100644
--- a/samples/server/petstore/java-helidon-server/v4/se/src/main/java/org/openapitools/server/model/User.java
+++ b/samples/server/petstore/java-helidon-server/v4/se/src/main/java/org/openapitools/server/model/User.java
@@ -166,7 +166,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/server/petstore/java-helidon-server/v4/se/src/main/resources/META-INF/openapi.yml b/samples/server/petstore/java-helidon-server/v4/se/src/main/resources/META-INF/openapi.yml
index e119dd1b876a..fa0dd0297aed 100644
--- a/samples/server/petstore/java-helidon-server/v4/se/src/main/resources/META-INF/openapi.yml
+++ b/samples/server/petstore/java-helidon-server/v4/se/src/main/resources/META-INF/openapi.yml
@@ -532,6 +532,7 @@ paths:
name: password
required: true
schema:
+ format: password
type: string
style: form
responses:
@@ -1508,6 +1509,7 @@ components:
email:
type: string
password:
+ format: password
type: string
phone:
type: string
diff --git a/samples/server/petstore/java-play-framework-fake-endpoints-with-security/app/apimodels/User.java b/samples/server/petstore/java-play-framework-fake-endpoints-with-security/app/apimodels/User.java
index 92511b039f47..bdee905604ed 100644
--- a/samples/server/petstore/java-play-framework-fake-endpoints-with-security/app/apimodels/User.java
+++ b/samples/server/petstore/java-play-framework-fake-endpoints-with-security/app/apimodels/User.java
@@ -216,7 +216,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/server/petstore/java-play-framework-fake-endpoints-with-security/public/openapi.json b/samples/server/petstore/java-play-framework-fake-endpoints-with-security/public/openapi.json
index 8c0b5170c20c..028cf17de167 100644
--- a/samples/server/petstore/java-play-framework-fake-endpoints-with-security/public/openapi.json
+++ b/samples/server/petstore/java-play-framework-fake-endpoints-with-security/public/openapi.json
@@ -230,6 +230,7 @@
"type" : "string"
},
"password" : {
+ "format" : "password",
"type" : "string"
},
"phone" : {
diff --git a/samples/server/petstore/java-wiremock/src/main/java/org/openapitools/mockserver/api/UserApiMockServer.java b/samples/server/petstore/java-wiremock/src/main/java/org/openapitools/mockserver/api/UserApiMockServer.java
index c358bdc6e33a..4104dc3315d5 100644
--- a/samples/server/petstore/java-wiremock/src/main/java/org/openapitools/mockserver/api/UserApiMockServer.java
+++ b/samples/server/petstore/java-wiremock/src/main/java/org/openapitools/mockserver/api/UserApiMockServer.java
@@ -193,7 +193,7 @@ public static String getUserByName200ResponseSample1() {
return "{ \"id\" : 0, \"username\" : \"username\", \"firstName\" : \"firstName\", \"lastName\" : \"lastName\", \"email\" : \"email\", \"password\" : \"password\", \"phone\" : \"phone\", \"userStatus\" : 6 }";
}
public static String getUserByName200ResponseSample2() {
- return " 123456789 aeiou aeiou aeiou aeiou aeiou aeiou 123 ";
+ return " 123456789 aeiou aeiou aeiou aeiou ******** aeiou 123 ";
}
diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/User.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/User.java
index 00a7ff9cbc7f..3f12b4a9dfa1 100644
--- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/User.java
+++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/User.java
@@ -264,7 +264,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/User.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/User.java
index 4779439a6259..d589269264e1 100644
--- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/User.java
+++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/User.java
@@ -228,7 +228,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");
diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/main/resources/META-INF/openapi.yaml b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/main/resources/META-INF/openapi.yaml
index 2b77b719546a..e766afc1ca3f 100644
--- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/main/resources/META-INF/openapi.yaml
+++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/main/resources/META-INF/openapi.yaml
@@ -562,6 +562,7 @@ paths:
name: password
required: true
schema:
+ format: password
type: string
style: form
responses:
@@ -1598,6 +1599,7 @@ components:
email:
type: string
password:
+ format: password
type: string
phone:
type: string
diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/User.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/User.java
index e316b57231a3..bf1b321e1f8c 100644
--- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/User.java
+++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/User.java
@@ -263,7 +263,7 @@ public String toString() {
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
- sb.append(" password: ").append(toIndentedString(password)).append("\n");
+ sb.append(" password: ").append("*").append("\n");
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
sb.append("}");