Skip to content

Allow unknown fan dates through OpenAPI 3.1 types - #1061

Merged
sidneyswift merged 1 commit into
mainfrom
codex/fan-null-schema-fixture
Oct 20, 2026
Merged

sidneyswift merged 1 commit into
mainfrom
codex/fan-null-schema-fixture

Conversation

@sswiftdrtv

Copy link
Copy Markdown
Contributor

A standards check found that the new optional fan date used type: string plus the older nullable: true extension inside an OpenAPI 3.1 document. Python's Draft202012Validator rejects the documented null value; the existing AJV run accepted its OpenAPI nullable extension and masked the mismatch. Use the standard string/null type union in the shared public fixture and guard null validation without the older extension. Runtime fan behavior is unchanged.

OpenAPI 3.1 Schema Object follows JSON Schema 2020-12. The standard validator now accepts null and the ISO date example and rejects numeric dates. The field stays optional and date-time; stored evidence, permissions and every other schema value remain unchanged.

Follow-up to merged #1058, paired with Marketing #197's unmerged maintained source. Two assertions fail before the correction; all 78 fan/contract tests/14 files pass afterward. Focused response-constructor types, scoped lint, formatting and whitespace pass. Full repository typing remains outside this qualified check; the prior independent #1058 review records its unchanged baseline errors.

This PR changes only the fixture and its tests. Marketing #197 must reference this actual companion merge after independent review/coordinator release, then its own publication can proceed. The separately corrected card-removal guide/Docs #385 publication stays independent. No customer comments, provider call, charge, migration, runtime or hosting change. Tracks recoupable/mono#327.

@vercel

vercel Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api Ready Ready Preview Oct 20, 2026 7:57am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 20, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 30 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: recoupable/api/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c935bd26-d769-445b-91c2-0fe48b5088c0
📥 Commits

Reviewing files that changed from the base of the PR and between c394ee7 and ec42009.

⛔ Files ignored due to path filters: 1
  • lib/contracts/__tests__/publishedFanRecency.test.ts is excluded by !**/*.test.*, !**/__tests__/** and included by lib/**
📒 Files selected for processing: 1
  • lib/contracts/fixtures/published-docs.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T07:58:42.213248Z ec42009 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch was successfully deployed

1 active deployment
Preview — ec420094 Deployed Oct 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants