Skip to content

Issue28: Updated DNS record to exclude name_in_zone in this scenario#33

Closed
rsingh4infoblox wants to merge 2 commits into
infobloxopen:mainfrom
rsingh4infoblox:Issue-28
Closed

Issue28: Updated DNS record to exclude name_in_zone in this scenario#33
rsingh4infoblox wants to merge 2 commits into
infobloxopen:mainfrom
rsingh4infoblox:Issue-28

Conversation

@rsingh4infoblox

Copy link
Copy Markdown

This pull request introduces a conditional exclusion for the name_in_zone field in the to_dict method of the Record model. When both absolute_name_spec and view are set and name_in_zone is empty, the field will be omitted from the serialized output.

Serialization logic update:

  • Updated the to_dict method in src/dns_data/models/record.py to exclude the name_in_zone field when absolute_name_spec and view are provided and name_in_zone is an empty string.

Comment thread src/dns_data/models/record.py Outdated
"additional_properties",
])

# Exclude name_in_zone when absolute_name_spec and view are provided

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an autogenerated file . It cant be modified manually !
Next time this file generatedby the generator , these changes would be overwritten

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have to find some other work around , as we cannot change default for name_in_zone back to None as it is vital to creating a zone without a name !

Comment thread src/dns_data/models/record.py
@rsingh4infoblox

Copy link
Copy Markdown
Author

#37 - new. pr opened

@rsingh4infoblox rsingh4infoblox deleted the Issue-28 branch June 9, 2026 16:26
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

Successfully merging this pull request may close these issues.

2 participants