chore(codegen): implemented Eq for OpenApiSchema

This commit is contained in:
Pyrite 2025-05-27 13:34:18 +02:00
parent 3a48c30fce
commit 03df609699
Signed by: pyrite
GPG key ID: 7F1BA9170CD35D15
4 changed files with 33 additions and 4 deletions

View file

@ -79,7 +79,7 @@ pub struct OpenApiPathBody<'a> {
pub operation_id: Option<OperationId>,
}
#[derive(Debug, Clone, Deserialize)]
#[derive(Debug, Clone, Deserialize, PartialEq, Eq)]
pub struct OpenApiPath<'a> {
#[serde(borrow)]
pub get: OpenApiPathBody<'a>,

View file

@ -3,7 +3,7 @@ use serde::Deserialize;
use super::{parameter::OpenApiParameter, path::OpenApiPath, r#type::OpenApiType};
#[derive(Debug, Clone, Deserialize)]
#[derive(Debug, Clone, Deserialize, PartialEq, Eq)]
pub struct Components<'a> {
#[serde(borrow)]
pub schemas: IndexMap<&'a str, OpenApiType<'a>>,
@ -11,7 +11,7 @@ pub struct Components<'a> {
pub parameters: IndexMap<&'a str, OpenApiParameter<'a>>,
}
#[derive(Debug, Clone, Deserialize)]
#[derive(Debug, Clone, Deserialize, PartialEq, Eq)]
pub struct OpenApiSchema<'a> {
#[serde(borrow)]
pub paths: IndexMap<&'a str, OpenApiPath<'a>>,