See test at https://github.com/microsoft/OpenAPI.NET.OData/blob/a578631d9a7ff4bb2590e8cf1d0c3291cce48fdf/test/Microsoft.OpenAPI.OData.Reader.Tests/Generator/OpenApiSchemaGeneratorTests.cs#L982 This is a regression of the NRT work at https://github.com/microsoft/OpenAPI.NET/pull/2146 That updated this check that no longer allows writing `ReadOnly` when the propertyName is not set. https://github.com/microsoft/OpenAPI.NET/blob/6a6a2fd9c57f80ac1f1d52f945bb794ed8d6fcfe/src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L730