validation_warning
Stable type · Other
Tier: stable · Kind: type · Topic: Other
| Julia | TypeScript | Python | Rust | Go |
|---|---|---|---|---|
ValidationWarning | ValidationWarning | ValidationWarning | ValidationWarning | ValidationWarning |
Julia
struct ValidationWarning
ValidationWarning(code::String, path::String, message::String)
ValidationWarning(code, path, message)
ValidationWarning
An advisory validation finding that is not about units: a stable diagnostic
code, the JSON path it concerns and a message. It never changes
is_valid.
TypeScript
interface ValidationWarning {
code: string;
path: string;
message: string;
}
An advisory validation finding that is not about units. It never changes
is_valid.
Properties
code— Stable diagnostic code.path— JSON pointer to the finding.
Python
class ValidationWarning
ValidationWarning(code: str, path: str, message: str)
An advisory validation finding that is not about units: a stable
diagnostic code, the JSON path it concerns and a message.
It never changes is_valid.
Rust
pub struct ValidationWarning {
pub code: String,
pub path: String,
pub message: String,
}
An advisory validation finding.
Go
type ValidationWarning struct {
Code string `json:"code"` // Stable diagnostic code
Path string `json:"path"` // RFC 6901 JSON Pointer to the finding
Message string `json:"message"` // Human-readable description
}
ValidationWarning is an advisory validation finding that is not about units. It never changes IsValid.