cebe / cebe/php-openapi

ref nullable false

Open
#215 1 comment 0 reactions 0 assignees View on GitHub
openapi 3.1
Dominant language
PHP
Stars
500
Forks
99
PR merge metrics
No merged PRs in 30d

Description

Minimal repoduce:

```json
{
"openapi": "3.1.0",
"info": {
"title": "Test",
"description": "Test",
"version": "1.0"
},
"components": {
"schemas": {
"Test": {
"type": "object",
"properties": {
"A": {
"$ref": "#/components/schemas/TestB",
"nullable": true
}
}
},
"TestB": {
"type": "object",
"properties": {
"join": {
"type": "string"
}
}
}
}
}
}
```

Test case

```php

components->schemas['Test']->properties['A']->nullable == true, 'Property A is not null');
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with the provided openapi.json and PHP script using Reader::readFromJsonFile. Start by tracing how the referenced TestB schema is loaded for Test.properties.A, then verify that its nullable value is preserved. Done means the supplied assertion passes for the OpenAPI 3.1 example.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi, php
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.