Skip to content

Add a configuration mode to inform API user of invalid fields expression without returning an error #3

Description

@clementdenis

Currently, the "checkFieldsExpression=false|true" servlet parameter allows an implementor to return an error an an API request containing an invalid field expression is received.

There should be a way to have more control over the action when receiving an invalid field expression.
For example:

  • checkFieldsExpression=false => do nothing (current implementation)
  • checkFieldsExpression=log => logs as warn in server logs
  • checkFieldsExpression=headerOutput => same as "log", and returns an error in the response header "X-Endpoints-invalidFieldsExpression" so the requestor can check what is wrong
  • checkFieldsExpression=true => return an error (current implementation)

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions