Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: kube-rs/kopium
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 991292ef15c71e546c5d0fe6b94710c668b5e98f
Choose a base ref
..
head repository: kube-rs/kopium
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b11337efd2458466c13a34ef501fe248abaca9f0
Choose a head ref
Showing with 5 additions and 2 deletions.
  1. +4 −1 src/analyzer.rs
  2. +1 −1 src/output.rs
5 changes: 4 additions & 1 deletion src/analyzer.rs
Original file line number Diff line number Diff line change
@@ -5,7 +5,10 @@ use heck::ToUpperCamelCase;
use k8s_openapi::apiextensions_apiserver::pkg::apis::apiextensions::v1::{
JSONSchemaProps, JSONSchemaPropsOrArray, JSONSchemaPropsOrBool, JSON,
};
use std::{cell::OnceCell, collections::{BTreeMap, HashMap}};
use std::{
cell::OnceCell,
collections::{BTreeMap, HashMap},
};

const IGNORED_KEYS: [&str; 3] = ["metadata", "apiVersion", "kind"];

2 changes: 1 addition & 1 deletion src/output.rs
Original file line number Diff line number Diff line change
@@ -92,7 +92,7 @@ impl Container {
// or we can insert enum defaults
return false;
}

if let Some(can_derive) = self.supports_derive_default.get() {
return *can_derive;
}