fern-api / fern

Input OpenAPI. Output SDKs and Docs.
https://buildwithfern.com
MIT License
2.45k stars 118 forks source link

(feat): customize status code for typescript express generator #3971

Closed dsinghvi closed 4 days ago

dsinghvi commented 4 days ago

The Express generator now supports a requestValidationStatusCode configuration where a user can specify the status code that should be thrown when the request doesn't match schema validation.

- name: fernapi/fern-typescript-express
  version: 0.16.3
  config: 
    requestValidationStatusCode: 400 # Defaults to 422