diff --git a/packages/binding-http/src/http-server.ts b/packages/binding-http/src/http-server.ts index 87629068b..0c115de18 100644 --- a/packages/binding-http/src/http-server.ts +++ b/packages/binding-http/src/http-server.ts @@ -340,12 +340,12 @@ export default class HttpServer implements ProtocolServer { for (const property of properties) { const readOnly: boolean = property.readOnly ?? false; - if (readOnly) { + if (!readOnly) { allReadOnly = false; } const writeOnly: boolean = property.writeOnly ?? false; - if (writeOnly) { + if (!writeOnly) { allWriteOnly = false; } }