Skip to content

Commit

Permalink
Merge pull request #1794 from SachinAkash01/relaxed-data-binding
Browse files Browse the repository at this point in the history
Refactor Descriptions for `laxDataBinding` Support
  • Loading branch information
lnash94 authored Nov 27, 2024
2 parents 11a335b + a75b292 commit da7f439
Show file tree
Hide file tree
Showing 36 changed files with 103 additions and 143 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,9 @@ public class TestConstants {
" # Enables the inbound payload validation functionality which provided by the constraint package. " +
"Enabled by default\n" +
" boolean validation = true;\n" +
" # Enables or disables relaxed data binding on the client side. Disabled by default.\n" +
" # When enabled, the JSON data will be projected to the Ballerina record type and during the " +
"projection, \n" +
" # nil values will be considered as optional fields and absent fields will be considered for " +
"nilable types\n" +
" # Enables relaxed data binding on the client side. When enabled, `nil` values are treated " +
"as optional,\n" +
" # and absent fields are handled as `nilable` types. Enabled by default.\n" +
" boolean laxDataBinding = true;\n" +
"|};";

Expand Down Expand Up @@ -216,11 +214,9 @@ public class TestConstants {
" # Enables the inbound payload validation functionality which provided by the constraint package. " +
"Enabled by default\n" +
" boolean validation = true;\n" +
" # Enables or disables relaxed data binding on the client side. Disabled by default.\n" +
" # When enabled, the JSON data will be projected to the Ballerina record type and during the " +
"projection, \n" +
" # nil values will be considered as optional fields and absent fields will be considered for " +
"nilable types\n" +
" # Enables relaxed data binding on the client side. When enabled, `nil` values are treated " +
"as optional,\n" +
" # and absent fields are handled as `nilable` types. Enabled by default.\n" +
" boolean laxDataBinding = true;\n" +
"|};";
public static final String CONNECTION_CONFIG_MIXED_AUTH = "" +
Expand Down Expand Up @@ -260,11 +256,9 @@ public class TestConstants {
" # Enables the inbound payload validation functionality which provided by the constraint package. " +
"Enabled by default\n" +
" boolean validation = true;\n" +
" # Enables or disables relaxed data binding on the client side. Disabled by default.\n" +
" # When enabled, the JSON data will be projected to the Ballerina record type and during the " +
"projection, \n" +
" # nil values will be considered as optional fields and absent fields will be considered for " +
"nilable types\n" +
" # Enables relaxed data binding on the client side. When enabled, `nil` values are treated " +
"as optional,\n" +
" # and absent fields are handled as `nilable` types. Enabled by default.\n" +
" boolean laxDataBinding = true;\n" +
"|};";

Expand Down Expand Up @@ -302,11 +296,9 @@ public class TestConstants {
" # Enables the inbound payload validation functionality which provided by the constraint package. " +
" Enabled by default\n" +
" boolean validation = true;\n" +
" # Enables or disables relaxed data binding on the client side. Disabled by default.\n" +
" # When enabled, the JSON data will be projected to the Ballerina record type and during the " +
"projection,\n" +
" # nil values will be considered as optional fields and absent fields will be considered for " +
"nilable types\n" +
" # Enables relaxed data binding on the client side. When enabled, `nil` values are treated " +
"as optional,\n" +
" # and absent fields are handled as `nilable` types. Enabled by default.\n" +
" boolean laxDataBinding = true;\n" +
"|};";
public static final String OAUTH2_REFRESH_TOKEN_GRANT_CONFIG_RECORD = "#OAuth2ClientCredentialsGrantConfigs" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,7 @@ public type ConnectionConfig record {|
http:ProxyConfig proxy?;
# Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
boolean validation = true;
# Enables or disables relaxed data binding on the client side. Disabled by default.
# When enabled, the JSON data will be projected to the Ballerina record type and during the projection,
# nil values will be considered as optional fields and absent fields will be considered for nilable types
# Enables relaxed data binding on the client side. When enabled, `nil` values are treated as optional,
# and absent fields are handled as `nilable` types. Enabled by default.
boolean laxDataBinding = true;
|};
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ public type ConnectionConfig record {|
http:ProxyConfig proxy?;
# Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
boolean validation = true;
# Enables or disables relaxed data binding on the client side. Disabled by default.
# When enabled, the JSON data will be projected to the Ballerina record type and during the projection,
# nil values will be considered as optional fields and absent fields will be considered for nilable types
# Enables relaxed data binding on the client side. When enabled, `nil` values are treated as optional,
# and absent fields are handled as `nilable` types. Enabled by default.
boolean laxDataBinding = true;
|};
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,8 @@ public type ConnectionConfig record {|
http:ProxyConfig proxy?;
# Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
boolean validation = true;
# Enables or disables relaxed data binding on the client side. Disabled by default.
# When enabled, the JSON data will be projected to the Ballerina record type and during the projection,
# nil values will be considered as optional fields and absent fields will be considered for nilable types
# Enables relaxed data binding on the client side. When enabled, `nil` values are treated as optional,
# and absent fields are handled as `nilable` types. Enabled by default.
boolean laxDataBinding = true;
|};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,8 @@ public type ConnectionConfig record {|
http:ProxyConfig proxy?;
# Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
boolean validation = true;
# Enables or disables relaxed data binding on the client side. Disabled by default.
# When enabled, the JSON data will be projected to the Ballerina record type and during the projection,
# nil values will be considered as optional fields and absent fields will be considered for nilable types
# Enables relaxed data binding on the client side. When enabled, `nil` values are treated as optional,
# and absent fields are handled as `nilable` types. Enabled by default.
boolean laxDataBinding = true;
|};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,8 @@ public type ConnectionConfig record {|
http:ProxyConfig proxy?;
# Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
boolean validation = true;
# Enables or disables relaxed data binding on the client side. Disabled by default.
# When enabled, the JSON data will be projected to the Ballerina record type and during the projection,
# nil values will be considered as optional fields and absent fields will be considered for nilable types
# Enables relaxed data binding on the client side. When enabled, `nil` values are treated as optional,
# and absent fields are handled as `nilable` types. Enabled by default.
boolean laxDataBinding = true;
|};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6737,9 +6737,8 @@ public type ConnectionConfig record {|
http:ProxyConfig proxy?;
# Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
boolean validation = true;
# Enables or disables relaxed data binding on the client side. Disabled by default.
# When enabled, the JSON data will be projected to the Ballerina record type and during the projection,
# nil values will be considered as optional fields and absent fields will be considered for nilable types
# Enables relaxed data binding on the client side. When enabled, `nil` values are treated as optional,
# and absent fields are handled as `nilable` types. Enabled by default.
boolean laxDataBinding = true;
|};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ public type ConnectionConfig record {|
http:ProxyConfig proxy?;
# Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
boolean validation = true;
# Enables or disables relaxed data binding on the client side. Disabled by default.
# When enabled, the JSON data will be projected to the Ballerina record type and during the projection,
# nil values will be considered as optional fields and absent fields will be considered for nilable types
# Enables relaxed data binding on the client side. When enabled, `nil` values are treated as optional,
# and absent fields are handled as `nilable` types. Enabled by default.
boolean laxDataBinding = true;
|};
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ public type ConnectionConfig record {|
http:ProxyConfig proxy?;
# Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
boolean validation = true;
# Enables or disables relaxed data binding on the client side. Disabled by default.
# When enabled, the JSON data will be projected to the Ballerina record type and during the projection,
# nil values will be considered as optional fields and absent fields will be considered for nilable types
# Enables relaxed data binding on the client side. When enabled, `nil` values are treated as optional,
# and absent fields are handled as `nilable` types. Enabled by default.
boolean laxDataBinding = true;
|};
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ public type ConnectionConfig record {|
http:ProxyConfig proxy?;
# Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
boolean validation = true;
# Enables or disables relaxed data binding on the client side. Disabled by default.
# When enabled, the JSON data will be projected to the Ballerina record type and during the projection,
# nil values will be considered as optional fields and absent fields will be considered for nilable types
# Enables relaxed data binding on the client side. When enabled, `nil` values are treated as optional,
# and absent fields are handled as `nilable` types. Enabled by default.
boolean laxDataBinding = true;
|};
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ public type ConnectionConfig record {|
http:ProxyConfig proxy?;
# Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
boolean validation = true;
# Enables or disables relaxed data binding on the client side. Disabled by default.
# When enabled, the JSON data will be projected to the Ballerina record type and during the projection,
# nil values will be considered as optional fields and absent fields will be considered for nilable types
# Enables relaxed data binding on the client side. When enabled, `nil` values are treated as optional,
# and absent fields are handled as `nilable` types. Enabled by default.
boolean laxDataBinding = true;
|};
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ public type ConnectionConfig record {|
http:ProxyConfig proxy?;
# Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
boolean validation = true;
# Enables or disables relaxed data binding on the client side. Disabled by default.
# When enabled, the JSON data will be projected to the Ballerina record type and during the projection,
# nil values will be considered as optional fields and absent fields will be considered for nilable types
# Enables relaxed data binding on the client side. When enabled, `nil` values are treated as optional,
# and absent fields are handled as `nilable` types. Enabled by default.
boolean laxDataBinding = true;
|};
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ public type ConnectionConfig record {|
http:ProxyConfig proxy?;
# Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
boolean validation = true;
# Enables or disables relaxed data binding on the client side. Disabled by default.
# When enabled, the JSON data will be projected to the Ballerina record type and during the projection,
# nil values will be considered as optional fields and absent fields will be considered for nilable types
# Enables relaxed data binding on the client side. When enabled, `nil` values are treated as optional,
# and absent fields are handled as `nilable` types. Enabled by default.
boolean laxDataBinding = true;
|};
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ public type ConnectionConfig record {|
http:ProxyConfig proxy?;
# Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
boolean validation = true;
# Enables or disables relaxed data binding on the client side. Disabled by default.
# When enabled, the JSON data will be projected to the Ballerina record type and during the projection,
# nil values will be considered as optional fields and absent fields will be considered for nilable types
# Enables relaxed data binding on the client side. When enabled, `nil` values are treated as optional,
# and absent fields are handled as `nilable` types. Enabled by default.
boolean laxDataBinding = true;
|};
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ public type ConnectionConfig record {|
http:ProxyConfig proxy?;
# Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
boolean validation = true;
# Enables or disables relaxed data binding on the client side. Disabled by default.
# When enabled, the JSON data will be projected to the Ballerina record type and during the projection,
# nil values will be considered as optional fields and absent fields will be considered for nilable types
# Enables relaxed data binding on the client side. When enabled, `nil` values are treated as optional,
# and absent fields are handled as `nilable` types. Enabled by default.
boolean laxDataBinding = true;
|};
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ public type ConnectionConfig record {|
http:ProxyConfig proxy?;
# Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
boolean validation = true;
# Enables or disables relaxed data binding on the client side. Disabled by default.
# When enabled, the JSON data will be projected to the Ballerina record type and during the projection,
# nil values will be considered as optional fields and absent fields will be considered for nilable types
# Enables relaxed data binding on the client side. When enabled, `nil` values are treated as optional,
# and absent fields are handled as `nilable` types. Enabled by default.
boolean laxDataBinding = true;
|};
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ public type ConnectionConfig record {|
http:ProxyConfig proxy?;
# Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
boolean validation = true;
# Enables or disables relaxed data binding on the client side. Disabled by default.
# When enabled, the JSON data will be projected to the Ballerina record type and during the projection,
# nil values will be considered as optional fields and absent fields will be considered for nilable types
# Enables relaxed data binding on the client side. When enabled, `nil` values are treated as optional,
# and absent fields are handled as `nilable` types. Enabled by default.
boolean laxDataBinding = true;
|};
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ public type ConnectionConfig record {|
http:ProxyConfig proxy?;
# Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
boolean validation = true;
# Enables or disables relaxed data binding on the client side. Disabled by default.
# When enabled, the JSON data will be projected to the Ballerina record type and during the projection,
# nil values will be considered as optional fields and absent fields will be considered for nilable types
# Enables relaxed data binding on the client side. When enabled, `nil` values are treated as optional,
# and absent fields are handled as `nilable` types. Enabled by default.
boolean laxDataBinding = true;
|};
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,7 @@ public type ConnectionConfig record {|
http:ProxyConfig proxy?;
# Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
boolean validation = true;
# Enables or disables relaxed data binding on the client side. Disabled by default.
# When enabled, the JSON data will be projected to the Ballerina record type and during the projection,
# nil values will be considered as optional fields and absent fields will be considered for nilable types
# Enables relaxed data binding on the client side. When enabled, `nil` values are treated as optional,
# and absent fields are handled as `nilable` types. Enabled by default.
boolean laxDataBinding = true;
|};
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ public type ConnectionConfig record {|
http:ProxyConfig proxy?;
# Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
boolean validation = true;
# Enables or disables relaxed data binding on the client side. Disabled by default.
# When enabled, the JSON data will be projected to the Ballerina record type and during the projection,
# nil values will be considered as optional fields and absent fields will be considered for nilable types
# Enables relaxed data binding on the client side. When enabled, `nil` values are treated as optional,
# and absent fields are handled as `nilable` types. Enabled by default.
boolean laxDataBinding = true;
|};
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,7 @@ public type ConnectionConfig record {|
http:ProxyConfig proxy?;
# Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
boolean validation = true;
# Enables or disables relaxed data binding on the client side. Disabled by default.
# When enabled, the JSON data will be projected to the Ballerina record type and during the projection,
# nil values will be considered as optional fields and absent fields will be considered for nilable types
# Enables relaxed data binding on the client side. When enabled, `nil` values are treated as optional,
# and absent fields are handled as `nilable` types. Enabled by default.
boolean laxDataBinding = true;
|};
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ public type ConnectionConfig record {|
http:ProxyConfig proxy?;
# Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
boolean validation = true;
# Enables or disables relaxed data binding on the client side. Disabled by default.
# When enabled, the JSON data will be projected to the Ballerina record type and during the projection,
# nil values will be considered as optional fields and absent fields will be considered for nilable types
# Enables relaxed data binding on the client side. When enabled, `nil` values are treated as optional,
# and absent fields are handled as `nilable` types. Enabled by default.
boolean laxDataBinding = true;
|};
Loading

0 comments on commit da7f439

Please sign in to comment.