mirror of
				https://github.com/Redocly/redoc.git
				synced 2025-11-01 00:07:32 +03:00 
			
		
		
		
	Fix required for JsonSchema component (fixes #28)
This commit is contained in:
		
							parent
							
								
									b054e62e0a
								
							
						
					
					
						commit
						3f698caabe
					
				|  | @ -59,8 +59,8 @@ export default class JsonSchema extends BaseComponent { | |||
|     this.pointer = schema._pointer || this.pointer; | ||||
| 
 | ||||
|     this.requiredMap = {}; | ||||
|     if (this.schema.required) { | ||||
|       this.schema.required.forEach(prop => this.requiredMap[prop] = true); | ||||
|     if (this.componentSchema.required) { | ||||
|       this.componentSchema.required.forEach(prop => this.requiredMap[prop] = true); | ||||
|     } | ||||
| 
 | ||||
|     if (!schema.properties) { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user