forked from kube-rs/kube
    
        
        - 
                Notifications
    You must be signed in to change notification settings 
- Fork 0
fix: kube-core::Schema hoisting logic #1
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
          
     Merged
      
      
    
  
     Merged
                    Changes from all commits
      Commits
    
    
            Show all changes
          
          
            52 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      295c431
              
                Add some tests for CRD generation for enums
              
              
                sbernauer 13db30c
              
                Update assertions to valid CRDs from kube 1.1.0
              
              
                sbernauer fb77413
              
                test: Add some un-documented variants to the NormalEnum
              
              
                NickLarsenNZ 0cb62f1
              
                test: Partial new impl for one_of hoisting
              
              
                NickLarsenNZ 85eaf36
              
                Finish enum oneOf hoisting
              
              
                sbernauer 285ab64
              
                adjust and document the hoist_one_of_enum function
              
              
                NickLarsenNZ e256f3a
              
                test: Add more basic testing to ensure hoisting is not performed when…
              
              
                NickLarsenNZ 35034c5
              
                hoist anyOf optional enums
              
              
                NickLarsenNZ 3850a19
              
                left a todo for empty structural variants in untagged enums
              
              
                NickLarsenNZ c2fbe70
              
                test: Add missing enum entries to expected schemas
              
              
                NickLarsenNZ 8abef36
              
                test: Add empty object handling to existing hoisting function
              
              
                NickLarsenNZ 8f578c2
              
                fix: Change hoist_any_of_option_enum to cater to nested any_of as wel…
              
              
                NickLarsenNZ c23aabc
              
                test: Add test for internal function, and add docs after seeing it's …
              
              
                NickLarsenNZ e91665b
              
                feat: Add functions for specific hoisting tasks
              
              
                NickLarsenNZ f13a751
              
                chore: Add a crude fix to code that will be removed in a later commit
              
              
                NickLarsenNZ 730e0db
              
                fix: update changed function name in tests
              
              
                NickLarsenNZ 7503fcc
              
                chore: Make new hoisting functions pub(crate)
              
              
                NickLarsenNZ 17e7a28
              
                chore: Move schema.rs to schema/mod.rs
              
              
                NickLarsenNZ cc6b20a
              
                feat: Implement new hoisting logic
              
              
                NickLarsenNZ 8e40d01
              
                fix: Handle property hoisting for tagged enums (oneOf subschemas)
              
              
                NickLarsenNZ e311361
              
                lint: commit whitespace differences
              
              
                NickLarsenNZ 307e828
              
                chore: use assert/assert_eq with message instead of panic
              
              
                NickLarsenNZ 25e10db
              
                Add integration test for (optional) complex enums
              
              
                sbernauer 764c418
              
                Add test case for Option<Option<Option<String>>>
              
              
                sbernauer d52c2c6
              
                Remove leftover newline
              
              
                sbernauer 6d156a0
              
                Add (failing) test for enums without descriptions
              
              
                sbernauer e3172d5
              
                Improve test comment
              
              
                sbernauer ef6da4f
              
                fix: Remove trailing nulls for optional enums
              
              
                sbernauer d0fe594
              
                chore: fix comments, use iter_mut
              
              
                NickLarsenNZ 39df989
              
                chore: fix comments/descriptions in tests
              
              
                NickLarsenNZ 2e0a7aa
              
                chore: add expected results to complex enum tests
              
              
                NickLarsenNZ 4668b97
              
                chore: Fix tests after merge
              
              
                NickLarsenNZ 021efc8
              
                chore: Fix import after merge
              
              
                NickLarsenNZ 92fb0e4
              
                fix: adjust metadata hoisting
              
              
                NickLarsenNZ 438bc7f
              
                test: add few more hoisting tests
              
              
                NickLarsenNZ a5d68d8
              
                chore: Remove unused code
              
              
                NickLarsenNZ 920d6aa
              
                test: Add some tests on untagged enums duplicated fields
              
              
                sbernauer c856801
              
                Apply suggestions from code review
              
              
                NickLarsenNZ b5cf5a4
              
                Merge remote-tracking branch 'origin/main' into test/add-enum-tests
              
              
                NickLarsenNZ cde8cc8
              
                Re-group imports
              
              
                sbernauer 9c19f10
              
                Move tests into own "tests" module
              
              
                sbernauer 1ce7e47
              
                Move null schema into NULL_SCHEMA static
              
              
                sbernauer 9eaedbb
              
                refactor: use more descriptive variable names
              
              
                NickLarsenNZ 0477fd0
              
                Apply suggestions from code review
              
              
                NickLarsenNZ a237e1e
              
                refactor: Replace panic with pattern match
              
              
                NickLarsenNZ dcbe17e
              
                refactor: Simplify description preservation and type dropping
              
              
                NickLarsenNZ acf3d57
              
                refactor: Simplify the getting or defaulting of the parent object
              
              
                NickLarsenNZ 925a8e3
              
                refactor: Reorder test enums
              
              
                NickLarsenNZ 11a8ddc
              
                docs: Revise doc comments
              
              
                NickLarsenNZ 26146ea
              
                Revert "refactor: Simplify description preservation and type dropping"
              
              
                NickLarsenNZ 75c7ffa
              
                refactor: Revise code after reverting
              
              
                NickLarsenNZ 2055029
              
                test: Rework tests that check that the CRDs are valid
              
              
                sbernauer File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.