mirror of
				https://github.com/Redocly/redoc.git
				synced 2025-10-28 06:21:09 +03:00 
			
		
		
		
	chore: remove info.version validation
This commit is contained in:
		
							parent
							
								
									8c9e3bdbe4
								
							
						
					
					
						commit
						801fea0474
					
				|  | @ -63,12 +63,6 @@ export class OpenAPIParser { | |||
|     if (spec.openapi === undefined) { | ||||
|       throw new Error('Document must be valid OpenAPI 3.0.0 definition'); | ||||
|     } | ||||
|     if (spec.info === undefined) { | ||||
|       throw new Error('OpenAPI 3.0.0 requires an `info` section'); | ||||
|     } | ||||
|     if (spec.info.version === undefined) { | ||||
|       console.warn('OpenAPI 3.0.0 requires setting a `info.version` field, ignoring.'); | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
|   preprocess(spec: OpenAPISpec) { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user