Skip to main content

require_schema

Function require_schema 

Source
pub fn require_schema(
    rsp: &mut RunFunctionResponse,
    name: impl Into<String>,
    api_version: impl Into<String>,
    kind: impl Into<String>,
)
Expand description

Adds a schema requirement to the response.

Crossplane fetches the OpenAPI v3 schema for the resource kind and calls the function again with it in req.required_schemas[name]. Read it with crate::request::get_required_schema.