feat(import): resolve references and schema composition

This commit is contained in:
bsodfather committed 2026-08-29 08:54:26 +03:00
1 parent 6c2a3712d8
commit 55209a9bbc
46 files changed
+4848 -437

No files matched your search

+73 -1
View File
@@ -78,7 +78,7 @@ macro_rules! f {
};
}
static FIELDS: [FieldSpec; 59] = [
static FIELDS: [FieldSpec; 65] = [
FieldSpec {
compatibility: Some("legacy URL form"),
rules: &[
@@ -339,6 +339,78 @@ static FIELDS: [FieldSpec; 59] = [
Some(67108864),
Public
),
FieldSpec {
rules: &[
"empty list disables external OpenAPI reference fetching",
"each prefix must be canonical HTTP(S) without userinfo, query, or fragment",
],
..f!(
"import.external_references.allowed_url_prefixes",
"CRANK_IMPORT_EXTERNAL_REFERENCE_ALLOWED_URL_PREFIXES",
AdminApi,
"url_prefix_list",
None,
Some(""),
None,
None,
Internal
)
},
f!(
"import.external_references.max_depth",
"CRANK_IMPORT_EXTERNAL_REFERENCE_MAX_DEPTH",
AdminApi,
"u32",
Some("edges"),
Some("8"),
Some(1),
Some(32),
Public
),
f!(
"import.external_references.max_documents",
"CRANK_IMPORT_EXTERNAL_REFERENCE_MAX_DOCUMENTS",
AdminApi,
"u32",
Some("documents"),
Some("32"),
Some(1),
Some(32),
Public
),
f!(
"import.external_references.max_fetch_bytes",
"CRANK_IMPORT_EXTERNAL_REFERENCE_MAX_FETCH_BYTES",
AdminApi,
"u64",
Some("bytes"),
Some("262144"),
Some(1),
Some(4194304),
Public
),
f!(
"import.external_references.fetch_timeout_ms",
"CRANK_IMPORT_EXTERNAL_REFERENCE_FETCH_TIMEOUT_MS",
AdminApi,
"u64",
Some("milliseconds"),
Some("10000"),
Some(1),
Some(300000),
Public
),
f!(
"import.external_references.max_expanded_nodes",
"CRANK_IMPORT_EXTERNAL_REFERENCE_MAX_EXPANDED_NODES",
AdminApi,
"u32",
Some("nodes"),
Some("10000"),
Some(1),
Some(100000),
Public
),
f!(
"observability.environment",
"CRANK_ENVIRONMENT",