sahih/codegen/model.rs
1use indexmap::IndexMap;
2use openapiv3::{SchemaData, Type};
3
4pub enum REQUIRED<'a> {
5 REQUIRED(&'a ModelProperty),
6}
7
8#[derive(Debug)]
9pub struct Model {
10 pub name: String,
11 pub data: SchemaData,
12 pub properties: IndexMap<String, ModelProperty>,
13}
14
15#[derive(Debug)]
16pub struct ModelProperty {
17 pub name: String,
18 pub data: SchemaData,
19 pub prop_type: Type,
20}