-
-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add yaml support #476
add yaml support #476
Conversation
poem-openapi/src/payload/yaml.rs
Outdated
ApiResponse, | ||
}; | ||
|
||
/// A XML payload. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// A XML payload. | |
/// A YAML payload. |
poem-openapi/src/types/mod.rs
Outdated
/// Parse from [`serde_json::Value`]. | ||
fn parse_from_yaml(value: Option<Value>) -> ParseResult<Self>; | ||
|
||
/// Parse from XML string. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// Parse from XML string. | |
/// Parse from YAML string. |
poem-openapi/src/types/mod.rs
Outdated
/// Convert this value to [`Value`]. | ||
fn to_yaml(&self) -> Option<Value>; | ||
|
||
/// Convert this value to JSON string. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// Convert this value to JSON string. | |
/// Convert this value to YAML string. |
format code with |
thanks |
Support yaml content type