mirror of
https://github.com/discourse/discourse.git
synced 2024-12-04 14:26:18 +08:00
4a4881613b
Due to the way that rswag expands shared components we were getting this warning when linting our api docs: ``` Component: "user_response" is never used. ``` This change refactors the `api/users_spec.rb` file so that it uses the new way of doing things with a separate `user_get_response.json` schema file rather then the old way of loading a shared response inside of the swagger_helper.rb file.
33 lines
471 B
JSON
33 lines
471 B
JSON
{
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"password": {
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"active": {
|
|
"type": "boolean"
|
|
},
|
|
"approved": {
|
|
"type": "boolean"
|
|
},
|
|
"user_fields[1]": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"email",
|
|
"password",
|
|
"username"
|
|
]
|
|
}
|