open-index/open-npm huggingface dataset:
npm package: @jayrchamp/adonis-lucid-snake-case
Description: This package adds the ability to Lucid methods (create, createMany, merge, fill) to automatically convert payload that contains camel case properties to a snake case format.
Author: jayrchamp
Latest version: 1.0.2

# Adonis Lucid Snake Case 

This package adds the ability to Lucid methods (create, createMany, merge, fill) to automatically convert payload that contains camel case properties to a snake case format.

## Getting Started

Install the package using the `adonis` CLI.

```bash
> adonis install @jayrchamp/adonis-lucid-snake-case
```

Follow instruction that are displayed ([or read them here](https://github.com/jayrchamp/adonis-lucid-snake-case/blob/master/instructions.md)).

## Usage

Soon...
npm package: @jayrchamp/adonis-strict-validator
Description: This package adds the ability to Validators to enforce requests to contain only the fields present in the rules getter.
Author: jayrchamp
Latest version: 2.1.5

# Adonis Strict Validator 

This package adds the ability to Validators to enforce requests to contain only the fields present in the rules getter.

## Getting Started

Install the package using the `adonis` CLI.

```bash
> adonis install @jayrchamp/adonis-strict-validator
```

Follow instruction that are displayed ([or read them here](https://github.com/jayrchamp/adonis-strict-validator/blob/master/instructions.md)).

## Usage

Create a Validator file in App/Validators/  (ex.: App/Validators/Example) and set strict getter to true.

```js
// App/Validators/Example/index.js

class ExampleValidator {
  
  /**
   * Deny requests containing an unspecified query string or body in the rules object
   */
  get strict () {
    return true
  }

  /**
   * Deny request without query string or body
   */
  get noEmpty () {
    return true
  }

  get rules () {
    return {
      gender: 'string'
    }
  }
}

module.exports = ExampleValidator

```

```js
// Request body example
{
  gender: "male",
  pogo: "yolo"

}

// Response example
{
  code: "E_VALIDATION_FAILED",
  errors: [
    {
      message: "strict validation failed on field",
      field: "pogo",
      validation: "strict_fields"
    }
  ]
}

```