Skip to content

apollo-encoder@0.2.2

Choose a tag to compare

@lrlna lrlna released this 28 Feb 09:33
· 786 commits to main since this release
963b355

0.2.2 - 2022-02-28

BREAKING

  • Rename InputValueDef into InputValueDefinition for consistency - bnjjj, [pull/182]

  • Rename input_object_ method into input_object on Document - bnjjj, [pull/182]

Fixes

  • Remove leading and ending " in BlockStringCharacter encoding only when it starts and end with a " - bnjjj, [pull/182]
    This ensures that a StringValue of type BlockStringCharacter, like the one in
    the test example below, does not getting encoded with an additional " ending
    up with """" leading set of characters.

    let desc = StringValue::Reason {
              source: Some("One of my cat is called:\r \"Mozart\"".to_string()),
          };
    
          assert_eq!(
              desc.to_string(),
              String::from("\n  \"\"\"\n  One of my cat is called:\r \"Mozart\"\n  \"\"\"\n  ")
          );
      );