feat(import): preserve supported HTTP contracts

This commit is contained in:
bsodfather committed 2026-09-13 03:30:31 +03:00
1 parent 083974c27f
commit f8ee7c9bfe
87 files changed
+7496 -534

No files matched your search

@@ -49,9 +49,13 @@ pub(super) fn test_operation(id: &str, version: u32, status: OperationStatus) ->
method: HttpMethod::Post,
path_template: "/v1/leads".to_owned(),
static_headers: BTreeMap::from([("X-Static".to_owned(), "true".to_owned())]),
request_contract: None,
response_contract: Vec::new(),
multipart_field_mime_types: BTreeMap::new(),
}),
input_schema: Schema {
kind: SchemaKind::Object,
format: None,
description: Some("input".to_owned()),
required: true,
nullable: false,
@@ -60,6 +64,7 @@ pub(super) fn test_operation(id: &str, version: u32, status: OperationStatus) ->
"email".to_owned(),
Schema {
kind: SchemaKind::String,
format: None,
description: None,
required: true,
nullable: false,
@@ -76,6 +81,7 @@ pub(super) fn test_operation(id: &str, version: u32, status: OperationStatus) ->
},
output_schema: Schema {
kind: SchemaKind::Object,
format: None,
description: Some("output".to_owned()),
required: true,
nullable: false,
@@ -84,6 +90,7 @@ pub(super) fn test_operation(id: &str, version: u32, status: OperationStatus) ->
"id".to_owned(),
Schema {
kind: SchemaKind::String,
format: None,
description: None,
required: true,
nullable: false,
@@ -251,6 +251,9 @@ async fn published_version_is_not_rewritten_by_a_later_save() {
method: HttpMethod::Post,
path_template: "/mutated".to_owned(),
static_headers: BTreeMap::new(),
request_contract: None,
response_contract: Vec::new(),
multipart_field_mime_types: BTreeMap::new(),
});
changed.updated_at = timestamp("2026-03-25T12:20:00Z");