Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array code completion does't work in some scenarios #5

Open
p-spacek opened this issue Jan 11, 2021 · 1 comment
Open

Array code completion does't work in some scenarios #5

p-spacek opened this issue Jan 11, 2021 · 1 comment

Comments

@p-spacek
Copy link
Owner

Describe the bug

Array code completion does't work in some scenarios
See attached schema
array.schema.json.txt

test_simpleArrayObject:
  #not ok
#  - # ok
  - obj1:
      name: 1  
  # ok,
# - #ok  
  
test_array_anyOf_strAndObj:
  #not ok
# - #not ok
  - obj1:
      name: 1
  # not ok
# - #not ok
     
test_array_anyOf_2objects:
  # not ok when type is anyOf
  - obj1:
      name: 5  
  # not ok when type is anyOf
# - #  OK


#test_anyOfObjectAndNull:#not ok, should be null or obj1

test_anyOfObjectAndNull:
  #not ok, should be null or obj1

test_anyOfStrArrAndNull:
  #notOk
  - test
  #not ok 
# - #notOk
  

test_anyOfObjArrAndNull:
  #notOk
# - #ok 
  - obj1:
      name: 5
  #ok
@p-spacek
Copy link
Owner Author

Fixed anyOf problem

image

test_simpleArrayObject:
  #not ok on the first position
#  - # ok
  - obj1:
      name: 1  
  # ok,
# - #ok  
  
test_array_anyOf_strAndObj:
  #not ok on the first position
# - # ok
  - obj1:
      name: 1
  # ok
# - # ok
     
test_array_anyOf_2objects:
  # not ok on the first position
# -# ok
# - # ok
  - obj1:
      name: 5
  # ok after array item without '-'
  


#test_anyOfObjectAndNull:#not ok, should be null or obj1

test_anyOfObjectAndNull:
  #not ok, should be null or obj1

test_anyOfStrArrAndNull:
  #notOk
  - test
  #not ok 
# - #notOk
  

test_anyOfObjArrAndNull:
  #notOk
# - #ok 
  - obj1:
      name: 5
  #ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant