<commit_before># Default Configuration - Validators

The Azure and Model validators


``` yaml $(azure-validator)
# default the v2 generator to using the last stable @microsoft.azure/autorest-core 
version: ~2.0.4413

use-extension:
  "@microsoft.azure/classic-openapi-validator": "~1.0.9"
  "@microsoft.azure/openapi-validator": "~1.0.2"
```

``` yaml $(model-validator)
# default the v2 generator to using the last stable @microsoft.azure/autorest-core 
version: ~2.0.4413

use-extension:
  "oav": "~0.4.20"
```


#### Validation

``` yaml
pipeline:
  swagger-document/model-validator:
    input: swagger-document/identity
    scope: model-validator
  swagger-document/semantic-validator:
    input: swagger-document/identity
    scope: semantic-validator
```

``` yaml $(notnow)
pipeline:
  openapi-document/model-validator:
    input: openapi-document/identity
    scope: model-validator
  openapi-document/semantic-validator:
    input: openapi-document/identity
    scope: semantic-validator
```

# Validation

## Client Side Validation

On by default for backwards compatibility, but see https://github.com/Azure/autorest/issues/2100

``` yaml
client-side-validation: true
```
<commit_msg>Only turn on client-side-validation by default for the v2 pipeline<commit_after># Default Configuration - Validators

The Azure and Model validators


``` yaml $(azure-validator)
# default the v2 generator to using the last stable @microsoft.azure/autorest-core 
version: ~2.0.4413

use-extension:
  "@microsoft.azure/classic-openapi-validator": "~1.0.9"
  "@microsoft.azure/openapi-validator": "~1.0.2"
```

``` yaml $(model-validator)
# default the v2 generator to using the last stable @microsoft.azure/autorest-core 
version: ~2.0.4413

use-extension:
  "oav": "~0.4.20"
```


#### Validation

``` yaml
pipeline:
  swagger-document/model-validator:
    input: swagger-document/identity
    scope: model-validator
  swagger-document/semantic-validator:
    input: swagger-document/identity
    scope: semantic-validator
```

``` yaml $(notnow)
pipeline:
  openapi-document/model-validator:
    input: openapi-document/identity
    scope: model-validator
  openapi-document/semantic-validator:
    input: openapi-document/identity
    scope: semantic-validator
```

# Validation

## Client Side Validation

On by default in AutoRest v2 for backwards compatibility, but see https://github.com/Azure/autorest/issues/2100.

``` yaml $(pipeline-model) == 'v2'
client-side-validation: true
```

{'fraction_non_alphanumeric': 0.13148371531966224, 'fraction_numerical': 0.02372336147969441, 'mean_word_length': 4.271186440677966, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '505406', 'n_tokens_mistral': 833, 'n_tokens_neox': 791, 'n_words': 188}