()
| 273 | |
| 274 | #[test] |
| 275 | fn test_parse_json_schema_dialect() { |
| 276 | let yaml = r#" |
| 277 | openapi: 3.1.0 |
| 278 | jsonSchemaDialect: https://spec.openapis.org/oas/3.1/dialect/base |
| 279 | info: |
| 280 | title: Test API |
| 281 | version: '1.0.0' |
| 282 | paths: |
| 283 | /test: |
| 284 | get: |
| 285 | responses: |
| 286 | '200': |
| 287 | description: OK |
| 288 | "#; |
| 289 | |
| 290 | let openapi: OpenAPI = OpenAPI::yaml(yaml).unwrap(); |
| 291 | assert!(openapi.json_schema_dialect.is_some()); |
| 292 | assert_eq!( |
| 293 | openapi.json_schema_dialect.as_ref().unwrap(), |
| 294 | "https://spec.openapis.org/oas/3.1/dialect/base" |
| 295 | ); |
| 296 | } |
| 297 | } |
nothing calls this directly
no outgoing calls
no test coverage detected