openapi_nexus_common/
warning.rs

1//! Parse warning for non-fatal issues
2
3use crate::location::SourceLocation;
4
5/// Parse warning for non-fatal issues
6#[derive(Debug, Clone)]
7pub struct ParseWarning {
8    pub message: String,
9    pub location: SourceLocation,
10}
11
12impl ParseWarning {
13    pub fn new(message: String, location: SourceLocation) -> Self {
14        Self { message, location }
15    }
16}