-
Notifications
You must be signed in to change notification settings - Fork 13
2025-10 features #200
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
+21,583
−3,252
Merged
2025-10 features #200
Changes from 6 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
6ebdfed
regenerate code based on 2025-10 oas
rohanshah18 00b12b2
regenerate code based on newly added api spec changes
rohanshah18 657515f
fix breaking changes x1
rohanshah18 8fd7b34
fix breaking changes x2
rohanshah18 2b9ac6f
fix code generation naming collision by fixing titles in oas via shel…
rohanshah18 7abfa8b
fix unit tests
rohanshah18 3bb6465
fix integration tests
rohanshah18 96bd348
fix integration tests x2
rohanshah18 a1efefb
fix integration tests x3
rohanshah18 5a5f743
update README for breaking changes
rohanshah18 f15f541
Add Support for Dedicated Read Capacity (DRN) and Metadata Schema Con…
rohanshah18 279faa1
Add support for Bring Your Own Cloud (BYOC) (#203)
rohanshah18 59b4ef6
Generate core based on oas and protos (#204)
rohanshah18 6a3cf70
Add createNamespace(), and prefix + totalCount to listNamespaces() (#…
rohanshah18 ba32eba
Add fetch and update by metadata (#206)
rohanshah18 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,142 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -eu -o pipefail | ||
|
|
||
| # Simple script to add titles to nested objects in ConfigureIndexRequest schema | ||
| # Adds titles to the serverless and pod nested inline objects | ||
|
|
||
| if [ $# -lt 1 ]; then | ||
| echo "Usage: $0 <yaml_file>" | ||
| exit 1 | ||
| fi | ||
|
|
||
| file="$1" | ||
|
|
||
| if [ ! -f "$file" ]; then | ||
| echo "Error: File does not exist: $file" | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "Processing: $file" | ||
|
|
||
| # Read file into array | ||
| lines=() | ||
| while IFS= read -r line || [ -n "$line" ]; do | ||
| lines+=("$line") | ||
| done < "$file" | ||
| total_lines=${#lines[@]} | ||
|
|
||
| in_configure_index_request=false | ||
| changed=false | ||
| i=0 | ||
|
|
||
| while [ $i -lt $total_lines ]; do | ||
| line="${lines[$i]}" | ||
|
|
||
| # Detect ConfigureIndexRequest schema | ||
| if echo "$line" | grep -qE '^[[:space:]]*ConfigureIndexRequest:'; then | ||
| in_configure_index_request=true | ||
| fi | ||
|
|
||
| # Check if we've left ConfigureIndexRequest (hit another top-level schema) | ||
| if [ "$in_configure_index_request" = true ]; then | ||
| if echo "$line" | grep -qE '^[[:space:]]*[A-Z][a-zA-Z0-9_]+:'; then | ||
| if ! echo "$line" | grep -qE '^[[:space:]]*ConfigureIndexRequest:'; then | ||
| in_configure_index_request=false | ||
| fi | ||
| fi | ||
| fi | ||
|
|
||
| # Process nested objects within ConfigureIndexRequest | ||
| if [ "$in_configure_index_request" = true ]; then | ||
| # Look for "serverless:" or "pod:" property (standalone line ending with colon) | ||
| if echo "$line" | grep -qE '^[[:space:]]+(serverless|pod):[[:space:]]*$'; then | ||
| prop_name=$(echo "$line" | sed -E 's/^[[:space:]]+(serverless|pod):[[:space:]]*$/\1/') | ||
| prop_indent=$(echo "$line" | sed 's/^\([[:space:]]*\).*/\1/') | ||
|
|
||
| # Look ahead for "type: object" that doesn't have a title | ||
| # Only check next 8 lines to avoid matching other properties | ||
| j=$((i + 1)) | ||
| found_type_object=false | ||
| type_object_idx=0 | ||
|
|
||
| while [ $j -lt $total_lines ] && [ $j -lt $((i + 8)) ]; do | ||
| next_line="${lines[$j]}" | ||
| next_indent=$(echo "$next_line" | sed 's/^\([[:space:]]*\).*/\1/') | ||
|
|
||
| # Stop if we've left this property block (less or equal indentation means different property) | ||
| if [ ${#next_indent} -le ${#prop_indent} ]; then | ||
| break | ||
| fi | ||
|
|
||
| # Check for type: object (must be at same indent level as other property fields) | ||
| if echo "$next_line" | grep -qE '^[[:space:]]+type:[[:space:]]*object[[:space:]]*$'; then | ||
| found_type_object=true | ||
| type_object_idx=$j | ||
|
|
||
| # Check if title already exists in next few lines | ||
| has_title=false | ||
| k=$((j + 1)) | ||
| while [ $k -lt $total_lines ] && [ $k -lt $((j + 5)) ]; do | ||
| check_line="${lines[$k]}" | ||
| check_indent=$(echo "$check_line" | sed 's/^\([[:space:]]*\).*/\1/') | ||
|
|
||
| # Stop if we've left this object definition | ||
| if [ ${#check_indent} -le ${#next_indent} ]; then | ||
| break | ||
| fi | ||
|
|
||
| if echo "$check_line" | grep -qE '^[[:space:]]+title:'; then | ||
| has_title=true | ||
| break | ||
| fi | ||
| if echo "$check_line" | grep -qE '^[[:space:]]+(properties|required|additionalProperties):'; then | ||
| break | ||
| fi | ||
| ((k++)) | ||
| done | ||
|
|
||
| # Add title if needed | ||
| if [ "$has_title" = false ]; then | ||
| # Determine title based on property name | ||
| if [ "$prop_name" = "serverless" ]; then | ||
| title="ConfigureIndexRequestServerlessConfig" | ||
| elif [ "$prop_name" = "pod" ]; then | ||
| title="ConfigureIndexRequestPodBasedConfig" | ||
| else | ||
| break | ||
| fi | ||
|
|
||
| # Get indentation from type: object line | ||
| indent=$(echo "${lines[$type_object_idx]}" | sed 's/\(^[[:space:]]*\).*/\1/') | ||
|
|
||
| # Insert title after type: object | ||
| insert_idx=$((type_object_idx + 1)) | ||
| lines=("${lines[@]:0:$insert_idx}" "${indent}title: ${title}" "${lines[@]:$insert_idx}") | ||
| ((total_lines++)) | ||
|
|
||
| changed=true | ||
| echo " Added title '${title}' to nested '${prop_name}' object at line $((insert_idx + 1))" | ||
|
|
||
| # Skip ahead | ||
| ((i = j)) | ||
| break | ||
| fi | ||
| break | ||
| fi | ||
|
|
||
| ((j++)) | ||
| done | ||
| fi | ||
| fi | ||
|
|
||
| ((i++)) | ||
| done | ||
|
|
||
| # Write back if changed | ||
| if [ "$changed" = true ]; then | ||
| printf '%s\n' "${lines[@]}" > "$file" | ||
| echo " File updated successfully" | ||
| else | ||
| echo " No changes needed (titles already exist)" | ||
| fi | ||
Submodule apis
updated
from a91585 to bbad89
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I dont add titles, openapi generator will create
ConfigureIndexRequestServerless.javaandConfigureIndexRequestServerlessServerless.javaclasses. And similarly forpod.