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

Implement field alias Field#as #7

Closed
mtkachenk0 opened this issue May 14, 2020 · 0 comments
Closed

Implement field alias Field#as #7

mtkachenk0 opened this issue May 14, 2020 · 0 comments
Labels
good first issue Good for newcomers

Comments

@mtkachenk0
Copy link
Owner

For API that have logic changes inside but the structures cannot be modified (backward compatibility) would be usefull to implement method as for field

schema do 
  field(:from_id).present.as(:from_identifier)
end 

the result should not contain from_id but contain from_identifier with the very value of from_id

# Input:
{from_id: 1}
# Output:
{from_identifier: 1}
@mtkachenk0 mtkachenk0 added the good first issue Good for newcomers label May 14, 2020
@mtkachenk0 mtkachenk0 changed the title Implement field aliases Field#as Implement field alias Field#as May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant