forked from MapComplete/MapComplete
		
	chore: automated housekeeping...
This commit is contained in:
		
							parent
							
								
									c9ce29f206
								
							
						
					
					
						commit
						40e894df8b
					
				
					 294 changed files with 14209 additions and 4192 deletions
				
			
		|  | @ -32,14 +32,14 @@ | |||
|     return type.some((t) => mightBeBoolean(t)) | ||||
|   } | ||||
| 
 | ||||
|   function mightBeTag(){ | ||||
|   function mightBeTag() { | ||||
|     const t = schema.type | ||||
|     if(!Array.isArray(t)){ | ||||
|     if (!Array.isArray(t)) { | ||||
|       return false | ||||
|     } | ||||
|     const hasAnd = t.some(obj => obj["$ref"] === "#/definitions/{and:TagConfigJson[];}") | ||||
|     const hasOr = t.some(obj => obj["$ref"] === "#/definitions/{or:TagConfigJson[];}") | ||||
|     const hasString = t.some(obj => obj["type"] === "string") | ||||
|     const hasAnd = t.some((obj) => obj["$ref"] === "#/definitions/{and:TagConfigJson[];}") | ||||
|     const hasOr = t.some((obj) => obj["$ref"] === "#/definitions/{or:TagConfigJson[];}") | ||||
|     const hasString = t.some((obj) => obj["type"] === "string") | ||||
|     return hasAnd && hasOr && hasString | ||||
|   } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue