Fix CI docs generation after #4329 (#4347)

Fix CI
This commit is contained in:
Adam Chalmers
2024-10-29 09:39:50 -05:00
committed by 49lf
parent 20495383ac
commit b4e59b5c56
3 changed files with 112 additions and 169 deletions

View File

@ -120863,34 +120863,6 @@
"TagEngineInfo": {
"description": "Engine information for a tag.",
"type": "object",
"oneOf": [
{
"description": "The path the tag is on.",
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"$ref": "#/components/schemas/Path"
}
},
"additionalProperties": false
},
{
"description": "The surface information for the tag.",
"type": "object",
"required": [
"surface"
],
"properties": {
"surface": {
"$ref": "#/components/schemas/ExtrudeSurface"
}
},
"additionalProperties": false
}
],
"required": [
"id",
"sketch"
@ -120905,6 +120877,24 @@
"description": "The sketch the tag is on.",
"type": "string",
"format": "uuid"
},
"path": {
"description": "The path the tag is on.",
"allOf": [
{
"$ref": "#/components/schemas/Path"
}
],
"nullable": true
},
"surface": {
"description": "The surface information for the tag.",
"allOf": [
{
"$ref": "#/components/schemas/ExtrudeSurface"
}
],
"nullable": true
}
}
},
@ -122193,34 +122183,6 @@
"TagEngineInfo": {
"description": "Engine information for a tag.",
"type": "object",
"oneOf": [
{
"description": "The path the tag is on.",
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"$ref": "#/components/schemas/Path"
}
},
"additionalProperties": false
},
{
"description": "The surface information for the tag.",
"type": "object",
"required": [
"surface"
],
"properties": {
"surface": {
"$ref": "#/components/schemas/ExtrudeSurface"
}
},
"additionalProperties": false
}
],
"required": [
"id",
"sketch"
@ -122235,6 +122197,24 @@
"description": "The sketch the tag is on.",
"type": "string",
"format": "uuid"
},
"path": {
"description": "The path the tag is on.",
"allOf": [
{
"$ref": "#/components/schemas/Path"
}
],
"nullable": true
},
"surface": {
"description": "The surface information for the tag.",
"allOf": [
{
"$ref": "#/components/schemas/ExtrudeSurface"
}
],
"nullable": true
}
}
},
@ -123571,34 +123551,6 @@
"TagEngineInfo": {
"description": "Engine information for a tag.",
"type": "object",
"oneOf": [
{
"description": "The path the tag is on.",
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"$ref": "#/components/schemas/Path"
}
},
"additionalProperties": false
},
{
"description": "The surface information for the tag.",
"type": "object",
"required": [
"surface"
],
"properties": {
"surface": {
"$ref": "#/components/schemas/ExtrudeSurface"
}
},
"additionalProperties": false
}
],
"required": [
"id",
"sketch"
@ -123613,6 +123565,24 @@
"description": "The sketch the tag is on.",
"type": "string",
"format": "uuid"
},
"path": {
"description": "The path the tag is on.",
"allOf": [
{
"$ref": "#/components/schemas/Path"
}
],
"nullable": true
},
"surface": {
"description": "The surface information for the tag.",
"allOf": [
{
"$ref": "#/components/schemas/ExtrudeSurface"
}
],
"nullable": true
}
}
},
@ -128381,34 +128351,6 @@
"TagEngineInfo": {
"description": "Engine information for a tag.",
"type": "object",
"oneOf": [
{
"description": "The path the tag is on.",
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"$ref": "#/components/schemas/Path"
}
},
"additionalProperties": false
},
{
"description": "The surface information for the tag.",
"type": "object",
"required": [
"surface"
],
"properties": {
"surface": {
"$ref": "#/components/schemas/ExtrudeSurface"
}
},
"additionalProperties": false
}
],
"required": [
"id",
"sketch"
@ -128423,6 +128365,24 @@
"description": "The sketch the tag is on.",
"type": "string",
"format": "uuid"
},
"path": {
"description": "The path the tag is on.",
"allOf": [
{
"$ref": "#/components/schemas/Path"
}
],
"nullable": true
},
"surface": {
"description": "The surface information for the tag.",
"allOf": [
{
"$ref": "#/components/schemas/ExtrudeSurface"
}
],
"nullable": true
}
}
},
@ -132612,34 +132572,6 @@
"TagEngineInfo": {
"description": "Engine information for a tag.",
"type": "object",
"oneOf": [
{
"description": "The path the tag is on.",
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"$ref": "#/components/schemas/Path"
}
},
"additionalProperties": false
},
{
"description": "The surface information for the tag.",
"type": "object",
"required": [
"surface"
],
"properties": {
"surface": {
"$ref": "#/components/schemas/ExtrudeSurface"
}
},
"additionalProperties": false
}
],
"required": [
"id",
"sketch"
@ -132654,6 +132586,24 @@
"description": "The sketch the tag is on.",
"type": "string",
"format": "uuid"
},
"path": {
"description": "The path the tag is on.",
"allOf": [
{
"$ref": "#/components/schemas/Path"
}
],
"nullable": true
},
"surface": {
"description": "The surface information for the tag.",
"allOf": [
{
"$ref": "#/components/schemas/ExtrudeSurface"
}
],
"nullable": true
}
}
},
@ -136448,34 +136398,6 @@
"TagEngineInfo": {
"description": "Engine information for a tag.",
"type": "object",
"oneOf": [
{
"description": "The path the tag is on.",
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"$ref": "#/components/schemas/Path"
}
},
"additionalProperties": false
},
{
"description": "The surface information for the tag.",
"type": "object",
"required": [
"surface"
],
"properties": {
"surface": {
"$ref": "#/components/schemas/ExtrudeSurface"
}
},
"additionalProperties": false
}
],
"required": [
"id",
"sketch"
@ -136490,6 +136412,24 @@
"description": "The sketch the tag is on.",
"type": "string",
"format": "uuid"
},
"path": {
"description": "The path the tag is on.",
"allOf": [
{
"$ref": "#/components/schemas/Path"
}
],
"nullable": true
},
"surface": {
"description": "The surface information for the tag.",
"allOf": [
{
"$ref": "#/components/schemas/ExtrudeSurface"
}
],
"nullable": true
}
}
},

View File

@ -5,3 +5,6 @@ new-test name:
lint:
cargo clippy --all --tests --benches -- -D warnings
redo-kcl-stdlib-docs:
EXPECTORATE=overwrite cargo nextest run -p kcl-lib docs::gen_std_tests::test_generate_stdlib

View File

@ -80,7 +80,7 @@ pub async fn assert_gt(_exec_state: &mut ExecState, args: Args) -> Result<KclVal
async fn inner_assert_equal(left: f64, right: f64, epsilon: f64, message: &str, args: &Args) -> Result<(), KclError> {
if epsilon <= 0.0 {
Err(KclError::Type(KclErrorDetails {
message: format!("assertEqual epsilon must be greater than zero"),
message: "assertEqual epsilon must be greater than zero".to_owned(),
source_ranges: vec![args.source_range],
}))
} else if (right - left).abs() < epsilon {