Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- BoxLang `$ref` parse hangs / bad absolute paths: depend on `swagger-sdk` with cycle-safe walks, absolute path resolution, and no `isStruct(cfc)` on nested parsers (see coldbox-modules/swagger-sdk).
- BoxLang: treat `arrayContainsNoCase` as boolean in `OpenAPIConstraintsGenerator` (do not compare with `> 0`; BoxLang evaluates `false > 0` as true).

## [3.1.3] - 2025-10-29

## [3.1.2] - 2024-09-24
Expand Down
3 changes: 2 additions & 1 deletion models/OpenAPIConstraintsGenerator.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ component name="OpenAPIConstraintsGenerator" {
return arguments.properties.map( ( fieldName, schema ) => {
return generateConstraint(
schema = schema,
isRequired = arrayContainsNoCase( requiredFields, fieldName ) > 0
// BoxLang returns boolean; `false > 0` is true there — use truthiness only
isRequired = arrayContainsNoCase( requiredFields, fieldName )
);
} );
}
Expand Down