---
title: "Discussion on \"Optional, nullable, or omitted? Modeling missing data in OpenAPI 3.1 without lying to clients\" | Hashnode"
description: "Discussion on \"Optional, nullable, or omitted? Modeling missing data in OpenAPI 3.1 without lying to clients\". Optional, nullable, and omitted are three different facts most specs collapse into one. A field can be required yet nullable, optional but never null, or an array empty rather than absent. Here is the 3.1 decision table, and why one non-null sample never proves non-nullability."
url: "https://hashnode.com/posts/openapi-nullable-optional-omitted-missing-data-3-1/6aca079a699990d79ccdb58b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Optional, nullable, or omitted? Modeling missing data in OpenAPI 3.1 without lying to clients](https://blogs.powerduck.com/openapi-nullable-optional-omitted-missing-data-3-1?utm_source=hashnode&utm_medium=feed)

Optional, nullable, and omitted are three different facts most specs collapse into one. A field can be required yet nullable, optional but never null, or an array empty rather than absent. Here is the 3.1 decision table, and why one non-null sample never proves non-nullability.

Oct 7 · 7 min read · blogs.powerduck.com  
Read the article

-   [#openapi](https://hashnode.com/tag/openapi)
-   [#json-schema](https://hashnode.com/tag/json-schema)
-   [#api-design](https://hashnode.com/tag/api-design)
-   [#best-practices](https://hashnode.com/tag/best-practices)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

  
[View profile](https://hashnode.com/@powerduck)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
