@@ -172,25 +172,29 @@ class ODataV4Format:
172
172
173
173
Example of JSON:
174
174
175
- error: {
176
- "code": "ValidationError",
177
- "message": "One or more fields contain incorrect values: ",
178
- "details": [
179
- {
180
- "code": "ValidationError",
181
- "target": "representation",
182
- "message": "Parsing error(s): String '' does not match regex pattern '^[^{}/ :]+(?: :\\ \\ d+)?$'.
183
- Path 'host', line 1, position 297."
184
- },
185
- {
175
+ .. code-block:: json
176
+
177
+ {
178
+ "error": {
186
179
"code": "ValidationError",
187
- "target": "representation",
188
- "message": "Parsing error(s): The input OpenAPI file is not valid for the OpenAPI specificate
189
- https: //github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md
190
- (schema https://github.com/OAI/OpenAPI-Specification/blob/master/schemas/v2.0/schema.json)."
180
+ "message": "One or more fields contain incorrect values: ",
181
+ "details": [
182
+ {
183
+ "code": "ValidationError",
184
+ "target": "representation",
185
+ "message": "Parsing error(s): String '' does not match regex pattern '^[^{}/ :]+(?: :\\ \\ d+)?$'.
186
+ Path 'host', line 1, position 297."
187
+ },
188
+ {
189
+ "code": "ValidationError",
190
+ "target": "representation",
191
+ "message": "Parsing error(s): The input OpenAPI file is not valid for the OpenAPI specificate
192
+ https: //github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md
193
+ (schema https://github.com/OAI/OpenAPI-Specification/blob/master/schemas/v2.0/schema.json)."
194
+ }
195
+ ]
191
196
}
192
- ]
193
- }
197
+ }
194
198
195
199
:param dict json_object: A Python dict representing a ODataV4 JSON
196
200
:ivar str ~.code: Its value is a service-defined error code.
0 commit comments