Skip to content
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

Yaml File; Input Data is written with "\n" instead of new line #9

Open
pallavitr75 opened this issue Jul 31, 2024 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@pallavitr75
Copy link

pallavitr75 commented Jul 31, 2024

  1. In exported Yaml files, Input Data is written with "\n" to cover data in few lines instead of following actual Input ASN Data structure.
  2. Exported Yaml file is having "output_file_name_keyword: output" which need to be removed manually otherwise it will create another output yaml file.

Input Data Info:

                remarks='ASN1 to DER_64',
                input_data='''NotificationEvent ::= BIT STRING { 
                                                        notificationInstall(0), 
                                                        notificationLocalEnable(1), 
                                                       notificationLocalDisable(2), 
                                                       notificationLocalDelete(3), 
                                                       notificationRpmEnable(4), -- #SupportedForRpmV3.0.0# 
                                                       notificationRpmDisable(5), -- #SupportedForRpmV3.0.0# 
                                                       notificationRpmDelete(6), -- #SupportedForRpmV3.0.0# 
                                                       loadRpmPackageResult(7) -- #SupportedForRpmV3.0.0# 
                                        }''',
                asn1_element=Asn1(Asn1Versions.GSMA_SGP_22_v3_1, 'PendingNotification'),
                input_format=Formats.ASN1,
                output_format=Formats.DER_64,
                output_file_name_keyword=KeyWords.EXPORT_FILE_NAME_KEYWORD

Output Yaml File Data:

input:
        input_data: "NotificationEvent ::= BIT STRING { \n    notificationInstall(0), \n    notificationLocalEnable(1), \n    
        notificationLocalDisable(2), \n    notificationLocalDelete(3), \n    notificationRpmEnable(4), -- 
        #SupportedForRpmV3.0.0# \n    notificationRpmDisable(5), -- #SupportedForRpmV3.0.0# \n    
         notificationRpmDelete(6), -- #SupportedForRpmV3.0.0# \n    loadRpmPackageResult(7) -- 
        #SupportedForRpmV3.0.0# \n} "
        print_input: true
        print_output: true
        print_info: true
        remarks:
          - ASN1 to DER_64
        input_format: asn1
        output_format: der_as_base64
        asn1_element: SGP_22.RSPDefinitions.PendingNotification
        output_file_name_keyword: output
@impratikjaiswal impratikjaiswal self-assigned this Aug 7, 2024
@impratikjaiswal impratikjaiswal transferred this issue from impratikjaiswal/amenitypj Aug 7, 2024
@impratikjaiswal
Copy link
Owner

Dear @pallavitr75 ,

Both issues are Acknowledged.
1st issue can be tracked here.
However 2nd can be tracked from #10

Thank You..

@impratikjaiswal impratikjaiswal added the bug Something isn't working label Aug 7, 2024
@impratikjaiswal impratikjaiswal changed the title ASN Play, Yaml File Issues Yaml File; Input Data is written with "\n" instead of new line Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants