Skip to content

Commit cf39058

Browse files
test: accept recursive annotated-allOf snapshot (Box<Expression> self-reference)
1 parent 7bf94db commit cf39058

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
source: src/test_helpers.rs
3+
expression: "&generated_code"
4+
---
5+
//! Generated types from OpenAPI specification
6+
//!
7+
//! This file contains all the generated types for the API.
8+
//! Do not edit manually - regenerate using the appropriate script.
9+
#![allow(clippy::large_enum_variant)]
10+
#![allow(clippy::format_in_format_args)]
11+
#![allow(clippy::let_unit_value)]
12+
#![allow(unreachable_patterns)]
13+
use serde::{Deserialize, Serialize};
14+
#[derive(Debug, Clone, Deserialize, Serialize, Default)]
15+
pub struct Expression {
16+
#[serde(skip_serializing_if = "Option::is_none")]
17+
pub not: Option<Box<Expression>>,
18+
}

0 commit comments

Comments
 (0)