guardrail-dev / guardrail-dev/guardrail

Allow omitting Presence

Open
#2,029 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Scala
Stars
541
Forks
138
PR merge metrics
No merged PRs in 30d

Description

Some (if not most) specs don't actually distinguish between a field being non-required and being null.
So it would be nice to avoid using Presence for them.

Ie, please allow an option to treat non-required fields as nullable.

Contributor guide

Open the contributing guide

Research direction

Start by locating how Presence is applied to non-required fields in the OpenAPI code-generation paths. Define the option's intended behavior and verify that generated fields can omit Presence while treating non-required fields as nullable; add or update coverage for the affected generation cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi, scala
Domain
backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.