You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now whenever I render anything from my controllers, like;
defdoorkeeper_forbidden_render_options(*){json: {error: {code: 'forbidden',message: 'This action is outside the authorized scopes'}}}end
I always receive a Committee:InvalidResponse error;
Committee::InvalidResponse: #/components/responses/forbidden/content/application~1json/schema expected , but received Hash: {"error"=>{"code"=>"forbidden", "message"=>"This action is outside the authorized scopes"}}
Where the schema definitions looks like this;
openapi: 3.0.0paths:
'/api/v1/accounts/{account_id}':
get:
operationId: get_accountsummary: Retrieve an existing acocuntdescription: > To show information about an account, send a GET request to `/api/v1/accounts/$ACCOUNT_ID`.tags:
- Accountsparameters:
- $ref: '#/components/parameters/account_id'responses:
'401':
$ref: '#/components/responses/unauthorized'components:
parameters:
account_id:
in: pathname: account_iddescription: A unique identifier for an account.required: trueschema:
type: stringformat: uuidexample: acf19357-d974-4843-9525-e98426ad5346schemas:
error:
type: objectproperties:
code:
type: stringdescription: > A short identifier corresponding to the HTTP status code returned. For example, the identifier for a response returning a 404 status code would be "not_found."example: not_foundmessage:
type: stringdescription: > A message providing additional information about the error, including details to help resolve it when possible.example: The resource you were accessing could not be found.request_id:
type: stringformat: uuiddescription: | Optionally, some endpoints may include a request ID that should be provided when reporting bugs or opening support tickets to help identify the issue.example: 4d9d8375-3c56-4925-a3e7-eb137fed17e9required:
- code
- messageresponses:
forbidden:
description: Forbidden.content:
application/json:
schema:
type: objectproperties:
error:
$ref: '#/components/schemas/error'example:
error:
code: forbiddenmessage: Forbidden to authenticate you.
Am I missing maybe some configuration value?
The text was updated successfully, but these errors were encountered:
What was the procedure that caused the problem?
For example, if you rewrite only the YAML file, the ruby file will not be changed, so the spring doesn't reload config.
I am setting up the middleware like this in my
config/application.rb
;Now whenever I render anything from my controllers, like;
I always receive a
Committee:InvalidResponse
error;Where the schema definitions looks like this;
Am I missing maybe some configuration value?
The text was updated successfully, but these errors were encountered: