## Context (Environment)
Version of the library: 6.2.1
Version of NodeJS: 20.13.0
- Confirm you were using yarn not npm: [x]
## Detailed Description
<!--- Provide a detailed description of the change or addition you are proposing -->
Possibly related to #1515, #1531 and #1612
## Breaking change?
<!--- if this is a breaking change, then please describe how it breaks the existing libraries inputs/outputs -->
<!--- if this is a breaking change, then discuss how we can mitigate that -->
Sorting
I'm submitting a ...
I confirm that I
Expected Behavior
Current Behavior
siteDomain
has regex@pattern
enforced.record
does not.Possible Solution
Steps to Reproduce
/**
type DomainRecord = Record<Domain, string>;
interface ReproBody { record: DomainRecord; siteDomain: Domain; }
@Route('/v0.1/repro') export class ReproController extends Controller { @Post('/') @SuccessResponse('200') public async readPage(@Body() requestBody: ReproBody) { return requestBody; } }
record
as expected{ "record": { "https://some.domain.com": "test string" }, "siteDomain": "some.domain.com" }