pub struct ProjectConfig {
pub error_schema_ref: String,
pub unimplemented_methods: Vec<String>,
pub public_methods: Vec<String>,
pub deprecated_methods: Vec<String>,
pub plain_text_endpoints: Vec<PlainTextEndpoint>,
pub metrics_path: Option<String>,
pub readiness_path: Option<String>,
pub servers: Vec<ServerEntry>,
pub info: InfoOverrides,
pub write_only_fields: Vec<String>,
pub read_only_fields: Vec<String>,
pub transforms: TransformConfig,
}Expand description
Project-level OpenAPI generation config.
Loaded from a YAML file via ProjectConfig::load, then applied to a
PatchConfig via PatchConfig::with_project_config.
Fields§
§error_schema_ref: String$ref path for the REST error response schema.
unimplemented_methods: Vec<String>Proto method short names for endpoints returning UNIMPLEMENTED.
public_methods: Vec<String>Proto method short names for public (no-auth) endpoints.
deprecated_methods: Vec<String>Proto method short names for deprecated endpoints.
plain_text_endpoints: Vec<PlainTextEndpoint>Endpoints that should use text/plain instead of application/json.
metrics_path: Option<String>Metrics endpoint path for response header enrichment (e.g., /metrics).
readiness_path: Option<String>Readiness probe path for adding 503 response (e.g., /health/ready).
servers: Vec<ServerEntry>Server entries for the servers block.
info: InfoOverridesOpenAPI info block overrides (contact, license, external docs).
write_only_fields: Vec<String>Additional field name patterns to mark as writeOnly.
read_only_fields: Vec<String>Additional field name patterns to mark as readOnly.
transforms: TransformConfigTransform toggles.