GeezerVison is showing github.com — docspring-ruby/docs/ErrorDetail.md at main · DocSpring/docspring-ruby
File metadata and controls
Copy raw file
Download raw file
OutlineEdit and raw actions
| Name |
Type |
Description |
Notes |
| code |
String |
What's wrong: required, unknown_property, type, enum, format, a JSON Schema keyword such as minLength, or a DocSpring code. New codes can be added. |
|
| message |
String |
A human-readable explanation of the problem. |
|
| pointer |
String |
A JSON pointer to the value in the request body (RFC 6901). An empty string means the whole body. In a submission's data_errors, it points into the request that created the submission. |
[optional] |
| parameter |
String |
The query parameter or header the detail is about. |
[optional] |
| submission_id |
String |
For a batch item that failed validation, the ID of the submission recorded for it. |
[optional] |
require 'docspring'
instance = DocSpring::ErrorDetail.new(
code: null,
message: null,
pointer: null,
parameter: null,
submission_id: null
)