Closed phillim1 closed 3 years ago
Firstly, Thanks for resolving the previous issue I logged. This issue does not look as if it is a similar syntax issue.
When validating the attached attached OAS3 file using openapi-enforcer 1.15.4 we receive an exception as:
UnhandledPromiseRejectionWarning: TypeError: Cannot freeze array buffer views with element
Note that if the example in the last line of the attached file is removed then the exception does not occur during validation.
example
Similarly, if the format: byte is removed and the example is retained then the exception does not occur during validation.
format: byte
Attached file: openapi.yaml.txt
Nice catch. Thank you for providing all of the necessary information to replicate the error. I've published a fix to npm as version 1.15.5.
Also, I'm glad I could help with the previous issue too. 😃
Firstly, Thanks for resolving the previous issue I logged. This issue does not look as if it is a similar syntax issue.
When validating the attached attached OAS3 file using openapi-enforcer 1.15.4 we receive an exception as:
UnhandledPromiseRejectionWarning: TypeError: Cannot freeze array buffer views with element
Note that if the
example
in the last line of the attached file is removed then the exception does not occur during validation.Similarly, if the
format: byte
is removed and theexample
is retained then the exception does not occur during validation.Attached file: openapi.yaml.txt