Skip to main content

golem_schema/schema/render/
mod.rs

1// Copyright 2024-2026 Golem Cloud
2//
3// Licensed under the Golem Source License v1.1 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://license.golem.cloud/LICENSE
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//! Guest-safe canonical schema and value rendering.
16
17pub mod error;
18pub mod json_schema;
19pub mod json_value;
20pub mod openapi;
21pub mod walker;
22
23pub use error::RenderError;
24pub use json_schema::{
25    JsonSchemaConfig, to_external_input_json_schema, to_external_output_json_schema,
26    to_json_schema, to_json_schema_with_config, to_reflection_json_schema,
27};
28pub use json_value::{
29    from_json_value, from_untrusted_json_value, to_json_value, to_json_value_redacted,
30};
31pub use openapi::{
32    to_external_input_openapi_components, to_external_output_openapi_components,
33    to_openapi_components,
34};
35pub use walker::{SchemaWalker, WalkerError, resolve_ref, walk};
36
37#[cfg(test)]
38mod tests;