Azure / Azure/azure-openapi-validator

[new rule]: format 'Duration' check

Open
#315 0 comments 0 reactions 0 assignees View on GitHub
sdk-rule
Dominant language
TypeScript
Stars
53
Forks
57
Avg merge
1d 23h
Merged PRs (30d)
2

Description

### Lint rule description

'Duration' check, as this issue https://github.com/Azure/azure-sdk-for-net/issues/26843 described, if a property is a real duration format then it should be marked as "format": "duration", other wise its name should not contain 'duration'.

### Related swagger example

N/A

### Category

SDK

### Severity level

Warning

### Applies to

Management plane API spec, Data plane API spec, RPaaS API spec

### How to fix the violation

Add "format": "duration" to the property

### What't the impact if breaking the rule

Generate wrong SDK

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.